Edytuj

Udostępnij za pośrednictwem


IUITextDocumentProxy Interface

Definition

Interface representing the required methods (if any) of the protocol UITextDocumentProxy.

[Foundation.Protocol(Name="UITextDocumentProxy", WrapperType=typeof(UIKit.UITextDocumentProxyWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUITextDocumentProxy : IDisposable, UIKit.IUIKeyInput
type IUITextDocumentProxy = interface
    interface INativeObject
    interface IDisposable
    interface IUIKeyInput
    interface IUITextInputTraits
Derived
Attributes
Implements

Remarks

This interface contains the required methods (if any) from the protocol defined by UITextDocumentProxy.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the UITextDocumentProxy protocol.

Optional methods (if any) are provided by the UITextDocumentProxy_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Properties

AutocapitalizationType

The UITextAutocapitalizationType used by the IUITextInput.

(Inherited from IUITextInputTraits)
AutocorrectionType

The UITextAutocorrectionType used by the IUITextInput.

(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.

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)
KeyboardAppearance

The UIKeyboardAppearance used by the IUITextInput

(Inherited from IUITextInputTraits)
KeyboardType

The UIKeyboardType used by the IUITextInput.

(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)
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)

Methods

AdjustTextPositionByCharacterOffset(nint)

Moves the cursor by offset. Positive values are toward the end of the document; Negative are toward the start.

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

Inserts text at the cursor.

(Inherited from IUIKeyInput)

Extension Methods

GetDocumentIdentifier(IUITextDocumentProxy)

Returns the unique ID for the document.

GetDocumentInputMode(IUITextDocumentProxy)

Returns the keyboard input mode.

GetSelectedText(IUITextDocumentProxy)

Returns the selected text.

GetPasswordRules(IUITextInputTraits)

Returns the password entry rules.

GetSmartDashesType(IUITextInputTraits)

Gets the smart dashes style.

GetSmartInsertDeleteType(IUITextInputTraits)

Gets the smart insert style.

GetSmartQuotesType(IUITextInputTraits)

Gets the smart quotes style.

GetTextContentType(IUITextInputTraits)

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

SetPasswordRules(IUITextInputTraits, UITextInputPasswordRules)

Sets the password entry rules.

SetSmartDashesType(IUITextInputTraits, UITextSmartDashesType)

Sets the style for smart dashes.

SetSmartInsertDeleteType(IUITextInputTraits, UITextSmartInsertDeleteType)

Sets the style for smart insertion.

SetSmartQuotesType(IUITextInputTraits, UITextSmartQuotesType)

Sets the style for smart quotes.

SetTextContentType(IUITextInputTraits, NSString)

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

Applies to