MonobjcMonobjc Documented Class Library
AttributedSubstringFromRange Method (range)
NamespacesMonobjc.InputMethodKitIIMKTextInputAttributedSubstringFromRange(NSRange)

Returns the attributed string for the provided range of text.

Original signature is '- (NSAttributedString*)attributedSubstringFromRange:(NSRange)range'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSAttributedString AttributedSubstringFromRange(
	NSRange range
)
Function AttributedSubstringFromRange ( _
	range As NSRange _
) As NSAttributedString
NSAttributedString^ AttributedSubstringFromRange(
	NSRange range
)
Parameters
range (NSRange)
The range of text, relative to the document, that specifies the string to retrieve.
Return Value
The attributed string. See the CTStringAttributes.h header file for the attributes that can be included in this string. If the client does not support the TSMDocumentAccess protocol, the returned string is created from data obtained by sending the client application a kEventTextInputGetSelectedText Carbon event. The returned NSAttributedString object is an autoreleased object.
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)

Assembly: Monobjc.InputMethodKit (Module: Monobjc.InputMethodKit)