NSLayoutManager.GetCharacterIndex 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 |
|---|---|
| GetCharacterIndex(UIntPtr) |
The index of the first character associated with the glyph at the specified index. |
| GetCharacterIndex(CGPoint, NSTextContainer) | |
| GetCharacterIndex(CGPoint, NSTextContainer, IntPtr) | |
| GetCharacterIndex(CGPoint, NSTextContainer, NFloat) |
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
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
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
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
unativeint
- Attributes