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
GetPosition(UITextPosition, UITextLayoutDirection, nint) |
Gets the character offset from an initial position. |
GetPosition(UITextPosition, nint) |
Gets the character offset from the initial position. |
GetPosition(UITextPosition, UITextLayoutDirection, nint)
Gets the character offset from an initial position.
[Foundation.Export("positionFromPosition:inDirection:offset:")]
[Foundation.Preserve(Conditional=true)]
public UIKit.UITextPosition GetPosition (UIKit.UITextPosition fromPosition, UIKit.UITextLayoutDirection inDirection, nint offset);
abstract member GetPosition : UIKit.UITextPosition * UIKit.UITextLayoutDirection * nint -> UIKit.UITextPosition
Parameters
- fromPosition
- UITextPosition
Initial text position
- inDirection
- UITextLayoutDirection
A constant indicating either backward or forward direction for storage.
- offset
- System.System.IntPtr System.nativeint
Character offset from the initial position.
Returns
The specified character offset.
- Attributes
Remarks
This can be either a positive or negative value.
Applies to
GetPosition(UITextPosition, nint)
Gets the character offset from the initial position.
[Foundation.Export("positionFromPosition:offset:")]
[Foundation.Preserve(Conditional=true)]
public UIKit.UITextPosition GetPosition (UIKit.UITextPosition fromPosition, nint offset);
abstract member GetPosition : UIKit.UITextPosition * nint -> UIKit.UITextPosition
Parameters
- fromPosition
- UITextPosition
Initial text position.
- offset
- System.System.IntPtr System.nativeint
Character offset from the initial position.
Returns
The specified character offset.
- Attributes