Share via


UITextView.ComparePosition(UITextPosition, UITextPosition) Method

Definition

Gets a comparison of one position to another.

[Foundation.Export("comparePosition:toPosition:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSComparisonResult ComparePosition(UIKit.UITextPosition first, UIKit.UITextPosition second);
[<Foundation.Export("comparePosition:toPosition:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ComparePosition : UIKit.UITextPosition * UIKit.UITextPosition -> Foundation.NSComparisonResult
override this.ComparePosition : UIKit.UITextPosition * UIKit.UITextPosition -> Foundation.NSComparisonResult

Parameters

first
UITextPosition

First text position.

second
UITextPosition

Second text position.

Returns

An indication as to whether two text positions are identical or if one is prior to the other.

Implements

Attributes

Applies to