共用方式為


IUITextDraggable 介面

定義

將文字檢視視為拖曳來源的介面。

[Foundation.Protocol(Name="UITextDraggable", WrapperType=typeof(UIKit.UITextDraggableWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUITextDraggable : IDisposable, UIKit.IUITextInput
type IUITextDraggable = interface
    interface INativeObject
    interface IDisposable
    interface IUIKeyInput
    interface IUITextInputTraits
    interface IUITextInput
衍生
屬性
實作

屬性

AutocapitalizationType

UITextAutocapitalizationType 所使用的 IUITextInput

(繼承來源 IUITextInputTraits)
AutocorrectionType

UITextAutocorrectionType 所使用的 IUITextInput

(繼承來源 IUITextInputTraits)
BeginningOfDocument

指出檔開頭的文字位置。

(繼承來源 IUITextInput)
EnablesReturnKeyAutomatically

是否自動啟用傳回金鑰。

(繼承來源 IUITextInputTraits)
EndOfDocument

指出檔開頭的文字位置。

(繼承來源 IUITextInput)
Handle

處理非受控物件標記法) (指標。

(繼承來源 INativeObject)
HasText

取得值,指出索引鍵輸入中是否有文字。

(繼承來源 IUIKeyInput)
KeyboardAppearance

UIKeyboardAppearance所使用的IUITextInput

(繼承來源 IUITextInputTraits)
KeyboardType

UIKeyboardType 所使用的 IUITextInput

(繼承來源 IUITextInputTraits)
MarkedTextRange

指定檔中目前標示的文字範圍。

(繼承來源 IUITextInput)
MarkedTextStyle

描述如何繪製文字的屬性字典。

(繼承來源 IUITextInput)
ReturnKeyType

的傳回索引鍵 IUITextInput 形式。

(繼承來源 IUITextInputTraits)
SecureTextEntry

是否應該隱藏輸入的文字。

(繼承來源 IUITextInputTraits)
SelectedTextRange

檔的選取文字範圍。

(繼承來源 IUITextInput)
SpellCheckingType

取得或設定值,指出是否開啟、關閉拼字檢查,或只有在啟用自動完成時,才會啟用拼字檢查, (預設) 。

(繼承來源 IUITextInputTraits)
TextDragActive

取得布林值,指出拖曳會話是否為文字檢視使用中。

TextDragDelegate

取得或設定用來管理拖曳來源行為的委派。

TextDragInteraction

取得文字檢視上的拖曳互動。

TextDragOptions

取得值,這個值會控制如何在拖曳的文字中顯示格式設定。

WeakInputDelegate

表示弱式輸入委派。

(繼承來源 IUITextInput)
WeakTokenizer

表示弱權杖化程式。

(繼承來源 IUITextInput)

方法

ComparePosition(UITextPosition, UITextPosition)

取得某個位置與另一個位置的比較。

(繼承來源 IUITextInput)
DeleteBackward()

將文字檢視視為拖曳來源的介面。

(繼承來源 IUIKeyInput)
GetBaseWritingDirection(UITextPosition, UITextStorageDirection)

取得文字位置的基底寫入方向。

(繼承來源 IUITextInput)
GetCaretRectForPosition(UITextPosition)

用於在指定插入點繪製插入號的矩形。

(繼承來源 IUITextInput)
GetCharacterRange(UITextPosition, UITextLayoutDirection)

取得定義方向限制內的字元範圍。

(繼承來源 IUITextInput)
GetCharacterRangeAtPoint(CGPoint)

取得檔中存在於指定點的字元或字元範圍。

(繼承來源 IUITextInput)
GetClosestPositionToPoint(CGPoint)

取得檔中最接近指定點的位置。

(繼承來源 IUITextInput)
GetClosestPositionToPoint(CGPoint, UITextRange)

將文字檢視視為拖曳來源的介面。

(繼承來源 IUITextInput)
GetFirstRectForRange(UITextRange)

取得包含指定之檔文字範圍的第一個矩形。

(繼承來源 IUITextInput)
GetOffsetFromPosition(UITextPosition, UITextPosition)

取得兩個已定義文字位置之間的可見字元數目。

(繼承來源 IUITextInput)
GetPosition(UITextPosition, nint)

從初始位置取得字元位移。

(繼承來源 IUITextInput)
GetPosition(UITextPosition, UITextLayoutDirection, nint)

從初始位置取得字元位移。

(繼承來源 IUITextInput)
GetPositionWithinRange(UITextRange, UITextLayoutDirection)

取得指定範圍內的位置。

(繼承來源 IUITextInput)
GetSelectionRects(UITextRange)

取得對應至文字範圍的選取範圍矩形陣列。

(繼承來源 IUITextInput)
GetTextRange(UITextPosition, UITextPosition)

取得指定的文字範圍。

(繼承來源 IUITextInput)
InsertText(String)

在游標插入文字。

(繼承來源 IUIKeyInput)
ReplaceText(UITextRange, String)

取代指定範圍內的檔文字。

(繼承來源 IUITextInput)
SetBaseWritingDirectionforRange(UITextWritingDirection, UITextRange)

設定以指定文字範圍撰寫的基底 directon。

(繼承來源 IUITextInput)
SetMarkedText(String, NSRange)

設定標示的文字,並將它標示為目前的選取範圍。

(繼承來源 IUITextInput)
TextInRange(UITextRange)

取得特定範圍內指定的所有文字。

(繼承來源 IUITextInput)
UnmarkText()

解除標記檔內所有目前標示的文字

(繼承來源 IUITextInput)

擴充方法

BeginFloatingCursor(IUITextInput, CGPoint)

開始在指定的 point 處顯示浮動資料指標。

DictationRecognitionFailed(IUITextInput)

聽寫的辨識失敗。

DictationRecordingDidEnd(IUITextInput)

聽寫的錄製已結束。

EndFloatingCursor(IUITextInput)

結束浮動資料指標的顯示。

GetCharacterOffsetOfPosition(IUITextInput, UITextPosition, UITextRange)

計算並傳回檔中 range 字元 position 的位移。

GetFrameForDictationResultPlaceholder(IUITextInput, NSObject)

傳回顯示動畫聽寫結果預留位置的矩形。

GetPosition(IUITextInput, UITextRange, nint)

計算並傳回檔中 atCharacterOffset 字元為 withinRange 的絕對位置。

GetSelectionAffinity(IUITextInput)

停止顯示浮動資料指標。

GetTextInputView(IUITextInput)

傳回輸入檢視,提供文字輸入內幾何作業的座標系統。

GetTextStyling(IUITextInput, UITextPosition, UITextStorageDirection)

傳回位置文字 atPosition 之樣式屬性的字典。

InsertDictationResult(IUITextInput, NSArray)

在目前位置插入聽寫結果。

InsertDictationResultPlaceholder(IUITextInput)

傳回預留位置物件,以在聽寫結果完成產生之前使用。

RemoveDictationResultPlaceholder(IUITextInput, NSObject, Boolean)

placeholder不再需要 。

SetSelectionAffinity(IUITextInput, UITextStorageDirection)

設定值,控制游標是否顯示在多行選取範圍最後一行的開頭或第二行到最後一行的結尾。

ShouldChangeTextInRange(IUITextInput, UITextRange, String)

詢問 中的 inRange 文字是否應該取代為 replacementText

UpdateFloatingCursor(IUITextInput, CGPoint)

將浮動 curor 移至指定的 point

GetPasswordRules(IUITextInputTraits)

傳回密碼輸入規則。

GetSmartDashesType(IUITextInputTraits)

取得智慧虛線樣式。

GetSmartInsertDeleteType(IUITextInputTraits)

取得智慧型插入樣式。

GetSmartQuotesType(IUITextInputTraits)

取得智慧引號樣式。

GetTextContentType(IUITextInputTraits)

取得預期的輸入語意,以允許系統提供自訂鍵盤。

SetPasswordRules(IUITextInputTraits, UITextInputPasswordRules)

設定密碼輸入規則。

SetSmartDashesType(IUITextInputTraits, UITextSmartDashesType)

設定智慧破折號的樣式。

SetSmartInsertDeleteType(IUITextInputTraits, UITextSmartInsertDeleteType)

設定智慧插入的樣式。

SetSmartQuotesType(IUITextInputTraits, UITextSmartQuotesType)

設定智慧引號的樣式。

SetTextContentType(IUITextInputTraits, NSString)

設定預期的輸入語意,以允許系統提供自訂鍵盤。

適用於