Condividi tramite


IUITextDocumentProxy Interface

Definition

This interface represents the Objective-C protocol UITextDocumentProxy.

[Foundation.Protocol(Name="UITextDocumentProxy", WrapperType=typeof(UIKit.UITextDocumentProxyWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="AdjustTextPositionByCharacterOffset", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.IntPtr) }, Selector="adjustTextPositionByCharacterOffset:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetMarkedText", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(System.String), typeof(Foundation.NSRange) }, Selector="setMarkedText:selectedRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnmarkText", Selector="unmarkText")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="documentContextBeforeInput", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentContextBeforeInput", PropertyType=typeof(System.String), Selector="documentContextBeforeInput")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="documentContextAfterInput", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentContextAfterInput", PropertyType=typeof(System.String), Selector="documentContextAfterInput")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="documentInputMode", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentInputMode", PropertyType=typeof(UIKit.UITextInputMode), Selector="documentInputMode")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="selectedText", IsProperty=true, IsRequired=true, IsStatic=false, Name="SelectedText", PropertyType=typeof(System.String), Selector="selectedText")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="documentIdentifier", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentIdentifier", PropertyType=typeof(Foundation.NSUuid), Selector="documentIdentifier")]
public interface IUITextDocumentProxy : IDisposable, UIKit.IUIKeyInput
[<Foundation.Protocol(Name="UITextDocumentProxy", WrapperType=typeof(UIKit.UITextDocumentProxyWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="AdjustTextPositionByCharacterOffset", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.IntPtr) }, Selector="adjustTextPositionByCharacterOffset:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetMarkedText", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(System.String), typeof(Foundation.NSRange) }, Selector="setMarkedText:selectedRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnmarkText", Selector="unmarkText")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="documentContextBeforeInput", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentContextBeforeInput", PropertyType=typeof(System.String), Selector="documentContextBeforeInput")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="documentContextAfterInput", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentContextAfterInput", PropertyType=typeof(System.String), Selector="documentContextAfterInput")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="documentInputMode", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentInputMode", PropertyType=typeof(UIKit.UITextInputMode), Selector="documentInputMode")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="selectedText", IsProperty=true, IsRequired=true, IsStatic=false, Name="SelectedText", PropertyType=typeof(System.String), Selector="selectedText")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="documentIdentifier", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentIdentifier", PropertyType=typeof(Foundation.NSUuid), Selector="documentIdentifier")>]
type IUITextDocumentProxy = interface
    interface INativeObject
    interface IDisposable
    interface IUIKeyInput
    interface IUITextInputTraits
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
AllowedWritingToolsResultOptions (Inherited from IUITextInputTraits)
AllowsNumberPadPopover (Inherited from IUITextInputTraits)
AutocapitalizationType

The UITextAutocapitalizationType used by the IUITextInput.

(Inherited from IUITextInputTraits)
AutocorrectionType

The UITextAutocorrectionType used by the IUITextInput.

(Inherited from IUITextInputTraits)
ConversationContext (Inherited from IUITextInputTraits)
DocumentContextAfterInput

Gets the textual context after the insertion point for this IUITextDocumentProxy object.

DocumentContextBeforeInput

Gets the textual context before the insertion point for this IUITextDocumentProxy object.

DocumentIdentifier

Returns the unique ID for the document.

DocumentInputMode

Returns the keyboard input mode.

EnablesReturnKeyAutomatically

Whether the return key is automatically enabled.

(Inherited from IUITextInputTraits)
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
HasText

Gets a value that tells whether the key input has text in it.

(Inherited from IUIKeyInput)
InlinePredictionType (Inherited from IUITextInputTraits)
KeyboardAppearance

The UIKeyboardAppearance used by the IUITextInput

(Inherited from IUITextInputTraits)
KeyboardType

The UIKeyboardType used by the IUITextInput.

(Inherited from IUITextInputTraits)
MathExpressionCompletionType (Inherited from IUITextInputTraits)
PasswordRules

The password entry rules.

(Inherited from IUITextInputTraits)
ReturnKeyType

The form of the return key for the IUITextInput.

(Inherited from IUITextInputTraits)
SecureTextEntry

Whether the entered text should be hidden.

(Inherited from IUITextInputTraits)
SelectedText

Returns the selected text.

SmartDashesType

The smart dashes style.

(Inherited from IUITextInputTraits)
SmartInsertDeleteType

The smart insert style.

(Inherited from IUITextInputTraits)
SmartQuotesType

The smart quotes style.

(Inherited from IUITextInputTraits)
SpellCheckingType

Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default).

(Inherited from IUITextInputTraits)
TextContentType

The semantic of the expected input, which allows the system to, for example, provide custom keyboards.

(Inherited from IUITextInputTraits)
WritingToolsBehavior (Inherited from IUITextInputTraits)

Methods

Name Description
AdjustTextPositionByCharacterOffset(IntPtr)

Changes the text position by offset. Positive values are toward the end of the document; Negative values are toward the start.

DeleteBackward() (Inherited from IUIKeyInput)
InsertText(String)

Inserts text at the cursor.

(Inherited from IUIKeyInput)
SetMarkedText(String, NSRange)
UnmarkText()

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetAllowedWritingToolsResultOptions(IUITextInputTraits)
GetAllowsNumberPadPopover(IUITextInputTraits)
GetAutocapitalizationType(IUITextInputTraits)

The UITextAutocapitalizationType used by the IUITextInput.

GetAutocorrectionType(IUITextInputTraits)

The UITextAutocorrectionType used by the IUITextInput.

GetConversationContext(IUITextInputTraits)
GetEnablesReturnKeyAutomatically(IUITextInputTraits)

Whether the return key is automatically enabled.

GetInlinePredictionType(IUITextInputTraits)
GetKeyboardAppearance(IUITextInputTraits)

The UIKeyboardAppearance used by the IUITextInput

GetKeyboardType(IUITextInputTraits)

The UIKeyboardType used by the IUITextInput.

GetMathExpressionCompletionType(IUITextInputTraits)
GetPasswordRules(IUITextInputTraits)

The password entry rules.

GetReturnKeyType(IUITextInputTraits)

The form of the return key for the IUITextInput.

GetSecureTextEntry(IUITextInputTraits)

Whether the entered text should be hidden.

GetSmartDashesType(IUITextInputTraits)

The smart dashes style.

GetSmartInsertDeleteType(IUITextInputTraits)

The smart insert style.

GetSmartQuotesType(IUITextInputTraits)

The smart quotes style.

GetSpellCheckingType(IUITextInputTraits)

Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default).

GetTextContentType(IUITextInputTraits)

The semantic of the expected input, which allows the system to, for example, provide custom keyboards.

GetWritingToolsBehavior(IUITextInputTraits)
SetAllowedWritingToolsResultOptions(IUITextInputTraits, UIWritingToolsResultOptions)
SetAllowsNumberPadPopover(IUITextInputTraits, Boolean)
SetAutocapitalizationType(IUITextInputTraits, UITextAutocapitalizationType)

The UITextAutocapitalizationType used by the IUITextInput.

SetAutocorrectionType(IUITextInputTraits, UITextAutocorrectionType)

The UITextAutocorrectionType used by the IUITextInput.

SetConversationContext(IUITextInputTraits, UIConversationContext)
SetEnablesReturnKeyAutomatically(IUITextInputTraits, Boolean)

Whether the return key is automatically enabled.

SetInlinePredictionType(IUITextInputTraits, UITextInlinePredictionType)
SetKeyboardAppearance(IUITextInputTraits, UIKeyboardAppearance)

The UIKeyboardAppearance used by the IUITextInput

SetKeyboardType(IUITextInputTraits, UIKeyboardType)

The UIKeyboardType used by the IUITextInput.

SetMathExpressionCompletionType(IUITextInputTraits, UITextMathExpressionCompletionType)
SetPasswordRules(IUITextInputTraits, UITextInputPasswordRules)

The password entry rules.

SetReturnKeyType(IUITextInputTraits, UIReturnKeyType)

The form of the return key for the IUITextInput.

SetSecureTextEntry(IUITextInputTraits, Boolean)

Whether the entered text should be hidden.

SetSmartDashesType(IUITextInputTraits, UITextSmartDashesType)

The smart dashes style.

SetSmartInsertDeleteType(IUITextInputTraits, UITextSmartInsertDeleteType)

The smart insert style.

SetSmartQuotesType(IUITextInputTraits, UITextSmartQuotesType)

The smart quotes style.

SetSpellCheckingType(IUITextInputTraits, UITextSpellCheckingType)

Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default).

SetTextContentType(IUITextInputTraits, NSString)

The semantic of the expected input, which allows the system to, for example, provide custom keyboards.

SetWritingToolsBehavior(IUITextInputTraits, UIWritingToolsBehavior)

Applies to