Share via


IUITextInput.GetPositionWithinRange 方法

定义

获取指定范围内的位置。

[Foundation.Export("positionWithinRange:farthestInDirection:")]
[Foundation.Preserve(Conditional=true)]
public UIKit.UITextPosition GetPositionWithinRange (UIKit.UITextRange range, UIKit.UITextLayoutDirection direction);
abstract member GetPositionWithinRange : UIKit.UITextRange * UIKit.UITextLayoutDirection -> UIKit.UITextPosition

参数

range
UITextRange

一个 UITextRange 对象,指示文档的文本范围。

direction
UITextLayoutDirection

指示存储方向的常量。

返回

指定范围内的位置。

属性

适用于