共用方式為


UITextView.GetCharacterOffsetOfPosition(UITextPosition, UITextRange) 方法

定義

傳回與 開頭 range 之間的 position 某些文字中的字元數。

[Foundation.Export("characterOffsetOfPosition:withinRange:")]
public virtual nint GetCharacterOffsetOfPosition (UIKit.UITextPosition position, UIKit.UITextRange range);
abstract member GetCharacterOffsetOfPosition : UIKit.UITextPosition * UIKit.UITextRange -> nint
override this.GetCharacterOffsetOfPosition : UIKit.UITextPosition * UIKit.UITextRange -> nint

參數

position
UITextPosition

文字中的位置。

range
UITextRange

檔中的文字範圍。

傳回

System.System.IntPtr System.nativeint
屬性

適用於