IUITextInput.GetPosition 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.
Overloads
| Name | Description |
|---|---|
| GetPosition(UITextPosition, IntPtr) |
Gets the character offset from the initial position. |
| GetPosition(UITextRange, IntPtr) |
Calculates and returns the absolute position in the document that is |
| GetPosition(UITextPosition, UITextLayoutDirection, IntPtr) |
Gets the character offset from an initial position. |
GetPosition(UITextPosition, IntPtr)
Gets the character offset from the initial position.
[Foundation.Export("positionFromPosition:offset:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITextPosition GetPosition(UIKit.UITextPosition fromPosition, IntPtr offset);
[<Foundation.Export("positionFromPosition:offset:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPosition : UIKit.UITextPosition * nativeint -> UIKit.UITextPosition
override this.GetPosition : UIKit.UITextPosition * nativeint -> UIKit.UITextPosition
Parameters
- fromPosition
- UITextPosition
Initial text position.
- offset
-
IntPtr
nativeint
Character offset from the initial position.
Returns
The specified character offset.
- Attributes
Applies to
GetPosition(UITextRange, IntPtr)
Calculates and returns the absolute position in the document that is atCharacterOffset characters into withinRange.
[Foundation.Export("positionWithinRange:atCharacterOffset:")]
[Foundation.OptionalMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITextPosition GetPosition(UIKit.UITextRange withinRange, IntPtr atCharacterOffset);
[<Foundation.Export("positionWithinRange:atCharacterOffset:")>]
[<Foundation.OptionalMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPosition : UIKit.UITextRange * nativeint -> UIKit.UITextPosition
override this.GetPosition : UIKit.UITextRange * nativeint -> UIKit.UITextPosition
Parameters
- withinRange
- UITextRange
- atCharacterOffset
-
IntPtr
nativeint
Returns
- Attributes
Applies to
GetPosition(UITextPosition, UITextLayoutDirection, IntPtr)
Gets the character offset from an initial position.
[Foundation.Export("positionFromPosition:inDirection:offset:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITextPosition GetPosition(UIKit.UITextPosition fromPosition, UIKit.UITextLayoutDirection inDirection, IntPtr offset);
[<Foundation.Export("positionFromPosition:inDirection:offset:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPosition : UIKit.UITextPosition * UIKit.UITextLayoutDirection * nativeint -> UIKit.UITextPosition
override this.GetPosition : UIKit.UITextPosition * UIKit.UITextLayoutDirection * nativeint -> UIKit.UITextPosition
Parameters
- fromPosition
- UITextPosition
Initial text position
- inDirection
- UITextLayoutDirection
A constant indicating either backward or forward direction for storage.
- offset
-
IntPtr
nativeint
Character offset from the initial position.
Returns
The specified character offset.
- Attributes
Remarks
This can be either a positive or negative value.