Condividi tramite


UITextInput_Extensions Class

Definition

Extension methods to the IUITextInput interface to support all the methods from the UITextInput protocol.

public static class UITextInput_Extensions
type UITextInput_Extensions = class
Inheritance
UITextInput_Extensions

Remarks

The extension methods for IUITextInput interface allow developers to treat instances of the interface as having all the optional methods of the original UITextInput protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

Name Description
BeginFloatingCursor(IUITextInput, CGPoint)

Begins displaying the floating cursor at the specified point.

DictationRecognitionFailed(IUITextInput)

The recognition of dictation failed.

DictationRecordingDidEnd(IUITextInput)

The recording of dictation ended.

DidDismissWritingTools(IUITextInput)
EndFloatingCursor(IUITextInput)

Ends display of the floating cursor.

GetAttributedText(IUITextInput, UITextRange)
GetCaretTransform(IUITextInput, UITextPosition)
GetCharacterOffsetOfPosition(IUITextInput, UITextPosition, UITextRange)

Calculates and returns the offset into range of the character that is in position in the document.

GetEditable(IUITextInput)
GetEditMenu(IUITextInput, UITextRange, UIMenuElement[])
GetFrameForDictationResultPlaceholder(IUITextInput, NSObject)

Returns the rectangle in which to display the animated dictation result placeholder.

GetPosition(IUITextInput, UITextRange, IntPtr)

Calculates and returns the absolute position in the document that is atCharacterOffset characters into withinRange.

GetSelectionAffinity(IUITextInput)

A value that controls whether the cursor is displayed at the start of the last line or end of the second-to-last line of a multiline selection.

GetSupportsAdaptiveImageGlyph(IUITextInput)
GetTextInputView(IUITextInput)

Returns the input view that provides the coordinate system for geometric operations within the text input.

GetTextStyling(IUITextInput, UITextPosition, UITextStorageDirection)

Returns a dictionary of style properties for text at the atPosition position.

InsertAdaptiveImageGlyph(IUITextInput, NSAdaptiveImageGlyph, UITextRange)
InsertAttributedText(IUITextInput, NSAttributedString)
InsertDictationResult(IUITextInput, NSArray)

Inserts a dictation result at the current position.

InsertDictationResultPlaceholder(IUITextInput)

Returns the placeholder object to use before dictation results are finished being generated.

InsertInputSuggestion(IUITextInput, UIInputSuggestion)
InsertText(IUITextInput, String, String[], UITextAlternativeStyle)
InsertTextPlaceholder(IUITextInput, CGSize)
RemoveDictationResultPlaceholder(IUITextInput, NSObject, Boolean)

The placeholder is no longer needed.

RemoveTextPlaceholder(IUITextInput, UITextPlaceholder)
ReplaceRange(IUITextInput, UITextRange, NSAttributedString)
SetAttributedMarkedText(IUITextInput, NSAttributedString, NSRange)
SetSelectionAffinity(IUITextInput, UITextStorageDirection)

A value that controls whether the cursor is displayed at the start of the last line or end of the second-to-last line of a multiline selection.

SetSupportsAdaptiveImageGlyph(IUITextInput, Boolean)
ShouldChangeTextInRange(IUITextInput, UITextRange, String)

Asks whether the text in inRange should be replaced with replacementText.

UpdateFloatingCursor(IUITextInput, CGPoint)

Moves the floating curor to the specified point.

WillDismissEditMenu(IUITextInput, IUIEditMenuInteractionAnimating)
WillPresentEditMenu(IUITextInput, IUIEditMenuInteractionAnimating)
WillPresentWritingTools(IUITextInput)

Applies to