IUITextDocumentProxy Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
| DocumentContextBeforeInput |
Gets the textual context before the insertion point for |
| 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 |
| DeleteBackward() | (Inherited from IUIKeyInput) |
| InsertText(String) |
Inserts text at the cursor. (Inherited from IUIKeyInput) |
| SetMarkedText(String, NSRange) | |
| UnmarkText() | |