共用方式為


UITextView.GetCharacterRange(UITextPosition, UITextLayoutDirection) 方法

定義

傳回範圍,代表從 byExtendingPosition 到 的距離盡可能。 direction

[Foundation.Export("characterRangeByExtendingPosition:inDirection:")]
public virtual UIKit.UITextRange GetCharacterRange (UIKit.UITextPosition byExtendingPosition, UIKit.UITextLayoutDirection direction);
abstract member GetCharacterRange : UIKit.UITextPosition * UIKit.UITextLayoutDirection -> UIKit.UITextRange
override this.GetCharacterRange : UIKit.UITextPosition * UIKit.UITextLayoutDirection -> UIKit.UITextRange

參數

byExtendingPosition
UITextPosition

某些文字中的位置。

direction
UITextLayoutDirection

版面配置的方向。

傳回

實作

屬性

適用於