MonobjcMonobjc Documented Class Library
SetMarkedTextSelectedRangeReplacementRange Method (aString, selectedRange, replacementRange)
NamespacesMonobjc.AppKitINSTextInputClientSetMarkedTextSelectedRangeReplacementRange(Id, NSRange, NSRange)

Replaces a specified range in the receiver’s text storage with the given string and sets the selection. (required)

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

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
void SetMarkedTextSelectedRangeReplacementRange(
	Id aString,
	NSRange selectedRange,
	NSRange replacementRange
Sub SetMarkedTextSelectedRangeReplacementRange ( _
	aString As Id, _
	selectedRange As NSRange, _
	replacementRange As NSRange _
void SetMarkedTextSelectedRangeReplacementRange(
	Id^ aString, 
	NSRange selectedRange, 
	NSRange replacementRange
aString (Id)
The string to insert. Can be either an NSString or NSAttributedString instance.
selectedRange (NSRange)
The range to set as the selection, computed from the beginning of the inserted string.
replacementRange (NSRange)
The range to replace, computed from the beginning of the marked text.
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)