MonobjcMonobjc Documented Class Library
SetMarkedTextSelectedRange Method (aString, selRange)
NamespacesMonobjc.AppKitINSTextInputSetMarkedTextSelectedRange(Id, NSRange)

Replaces currently marked text in the receiver’s text storage with the given string and sets the selection to the given range, computed from the beginning of the marked text. (required)

Original signature is '- (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
void SetMarkedTextSelectedRange(
	Id aString,
	NSRange selRange
)
Sub SetMarkedTextSelectedRange ( _
	aString As Id, _
	selRange As NSRange _
)
void SetMarkedTextSelectedRange(
	Id^ aString, 
	NSRange selRange
)
Parameters
aString (Id)
Either an NSString or an NSAttributedString object; must not be nil.
selRange (NSRange)
The range within aString to set as the selection.
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.AppKit (Module: Monobjc.AppKit)