Returns a new string containing the characters of the receiver up to, but not including, the one at a given index.
Original signature is '- (NSString *)substringToIndex:(NSUInteger)anIndex'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSString SubstringToIndex( NSUInteger anIndex )
Public Overridable Function SubstringToIndex ( _ anIndex As NSUInteger _ ) As NSString
public: virtual NSString^ SubstringToIndex( NSUInteger anIndex )
Parameters
- anIndex (NSUInteger)
- An index. The value must lie within the bounds of the receiver, or be equal to the length of the receiver.
Return Value
A new string containing the characters of the receiver up to, but not including, the one at anIndex. If anIndex is equal to the length of the string, returns a copy of the receiver.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)