UITextView.GetOffsetFromPosition(UITextPosition, UITextPosition) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of visible characters between two defined text positions.
[Foundation.Export("offsetFromPosition:toPosition:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr GetOffsetFromPosition(UIKit.UITextPosition fromPosition, UIKit.UITextPosition toPosition);
[<Foundation.Export("offsetFromPosition:toPosition:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetOffsetFromPosition : UIKit.UITextPosition * UIKit.UITextPosition -> nativeint
override this.GetOffsetFromPosition : UIKit.UITextPosition * UIKit.UITextPosition -> nativeint
Parameters
- fromPosition
- UITextPosition
Initial text position.
- toPosition
- UITextPosition
Ultimate text position.
Returns
nativeint
The number of visible characters between the two specified text positions.
Implements
- Attributes