Share via


UITextField.SetMarkedText(String, NSRange) Method

Definition

Sets the marked text and marks it as the current selection.

[Foundation.Export("setMarkedText:selectedRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetMarkedText(string markedText, Foundation.NSRange selectedRange);
[<Foundation.Export("setMarkedText:selectedRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetMarkedText : string * Foundation.NSRange -> unit
override this.SetMarkedText : string * Foundation.NSRange -> unit

Parameters

markedText
String

Text that is to be marked.

selectedRange
NSRange

An NSRange object indicating the range of a document's text.

Implements

Attributes

Applies to