Share via


NSLayoutManager.GetCharacterIndex Method

Definition

Overloads

GetCharacterIndex(UIntPtr)

The index of the first character associated with the glyph at the specified index.

[Foundation.Export("characterIndexForGlyphAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIntPtr GetCharacterIndex(UIntPtr glyphIndex);
[<Foundation.Export("characterIndexForGlyphAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetCharacterIndex : unativeint -> unativeint
override this.GetCharacterIndex : unativeint -> unativeint

Parameters

glyphIndex
UIntPtr

unativeint

Returns

UIntPtr

unativeint

Attributes

Remarks

If AllowsNonContiguousLayout is false, calling this method will result in generating all glyphs up to and including glyphIndex.

Applies to

GetCharacterIndex(CGPoint, NSTextContainer)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public UIntPtr GetCharacterIndex(CoreGraphics.CGPoint point, UIKit.NSTextContainer container);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.GetCharacterIndex : CoreGraphics.CGPoint * UIKit.NSTextContainer -> unativeint

Parameters

point
CGPoint
container
NSTextContainer

Returns

UIntPtr

unativeint

Attributes

Applies to

GetCharacterIndex(CGPoint, NSTextContainer, IntPtr)

[Foundation.Export("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual UIntPtr GetCharacterIndex(CoreGraphics.CGPoint point, UIKit.NSTextContainer container, IntPtr fractionOfDistanceBetweenInsertionPoints);
[<Foundation.Export("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetCharacterIndex : CoreGraphics.CGPoint * UIKit.NSTextContainer * nativeint -> unativeint
override this.GetCharacterIndex : CoreGraphics.CGPoint * UIKit.NSTextContainer * nativeint -> unativeint

Parameters

point
CGPoint
container
NSTextContainer
fractionOfDistanceBetweenInsertionPoints
IntPtr

nativeint

Returns

UIntPtr

unativeint

Attributes

Applies to

GetCharacterIndex(CGPoint, NSTextContainer, NFloat)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public UIntPtr GetCharacterIndex(CoreGraphics.CGPoint point, UIKit.NSTextContainer container, out System.Runtime.InteropServices.NFloat fractionOfDistanceBetweenInsertionPoints);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.GetCharacterIndex : CoreGraphics.CGPoint * UIKit.NSTextContainer * NFloat -> unativeint

Parameters

point
CGPoint
container
NSTextContainer
fractionOfDistanceBetweenInsertionPoints
NFloat

Returns

UIntPtr

unativeint

Attributes

Applies to