Determines whether whitespace needs to be added around the string to preserve proper spacing and punctuation when it replaces the characters in the specified range.
Original signature is '- (void)smartInsertForString:(NSString *)aString replacingRange:(NSRange)charRange beforeString:(NSString **)beforeString afterString:(NSString **)afterString'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual void SmartInsertForStringReplacingRangeBeforeStringAfterString( NSString aString, NSRange charRange, out NSString beforeString, out NSString afterString )
Public Overridable Sub SmartInsertForStringReplacingRangeBeforeStringAfterString ( _ aString As NSString, _ charRange As NSRange, _ <OutAttribute> ByRef beforeString As NSString, _ <OutAttribute> ByRef afterString As NSString _ )
public: virtual void SmartInsertForStringReplacingRangeBeforeStringAfterString( NSString^ aString, NSRange charRange, [OutAttribute] NSString^% beforeString, [OutAttribute] NSString^% afterString )
Parameters
- aString (NSString)
- The string that is replacing the characters in charRange.
- charRange (NSRange)
- The range of characters which aString is replacing.
- beforeString (NSString%)
- On return, a pointer to the string with the characters that should be added before aString; nil if there are no characters to add, if aString is nil, or if smart insertion and deletion are disabled.
- afterString (NSString%)
- On return, a pointer to the string with the characters that should be added after aString; nil if there are no characters to add, if aString is nil, or if smart insertion and deletion are disabled.
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)