Partager via


UITextView.GetPosition Méthode

Définition

Surcharges

GetPosition(UITextPosition, nint)

Retourne une deuxième position qui est décalée par rapport à la position spécifiée.

GetPosition(UITextRange, nint)

Retourne une position dans un document par rapport au début de withinRange.

GetPosition(UITextPosition, UITextLayoutDirection, nint)

Retourne une deuxième position dans un document la direction et offset par rapport à la première position.

GetPosition(UITextPosition, nint)

Retourne une deuxième position qui est décalée par rapport à la position spécifiée.

[Foundation.Export("positionFromPosition:offset:")]
public virtual UIKit.UITextPosition GetPosition (UIKit.UITextPosition fromPosition, nint offset);
abstract member GetPosition : UIKit.UITextPosition * nint -> UIKit.UITextPosition
override this.GetPosition : UIKit.UITextPosition * nint -> UIKit.UITextPosition

Paramètres

fromPosition
UITextPosition

Position dans un document.

offset
System.System.IntPtr System.nativeint

Décalage de caractères positif ou négatif par rapport à fromPosition.

Retours

Implémente

Attributs

Remarques

Peut être null si la position calculée est inférieure à zéro ou supérieure à la longueur du texte dans le document.

S’applique à

GetPosition(UITextRange, nint)

Retourne une position dans un document par rapport au début de withinRange.

[Foundation.Export("positionWithinRange:atCharacterOffset:")]
public virtual UIKit.UITextPosition GetPosition (UIKit.UITextRange withinRange, nint atCharacterOffset);
abstract member GetPosition : UIKit.UITextRange * nint -> UIKit.UITextPosition
override this.GetPosition : UIKit.UITextRange * nint -> UIKit.UITextPosition

Paramètres

withinRange
UITextRange

Plage de texte dans un document.

atCharacterOffset
System.System.IntPtr System.nativeint

Décalage par rapport au début de .withinRange

Retours

Attributs

S’applique à

GetPosition(UITextPosition, UITextLayoutDirection, nint)

Retourne une deuxième position dans un document la direction et offset par rapport à la première position.

[Foundation.Export("positionFromPosition:inDirection:offset:")]
public virtual UIKit.UITextPosition GetPosition (UIKit.UITextPosition fromPosition, UIKit.UITextLayoutDirection inDirection, nint offset);
abstract member GetPosition : UIKit.UITextPosition * UIKit.UITextLayoutDirection * nint -> UIKit.UITextPosition
override this.GetPosition : UIKit.UITextPosition * UIKit.UITextLayoutDirection * nint -> UIKit.UITextPosition

Paramètres

fromPosition
UITextPosition

Première position.

inDirection
UITextLayoutDirection

Direction à partir de laquelle calculer le décalage.

offset
System.System.IntPtr System.nativeint

Décalage à utiliser.

Retours

Implémente

Attributs

S’applique à