NSLayoutManager.GetGlyph 方法

定义

重载

GetGlyph(nuint)

检索 处的字形。

GetGlyph(nuint, Boolean)

检索字形为 ,如果索引有效,将 设置为 true

GetGlyph(nuint)

检索 处的字形。

[Foundation.Export("CGGlyphAtIndex:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual ushort GetGlyph (nuint glyphIndex);
abstract member GetGlyph : nuint -> uint16
override this.GetGlyph : nuint -> uint16

参数

glyphIndex
System.System.UIntPtr System.unativeint

返回

属性

注解

调用此方法将生成所有字形,包括 处的字形。

适用于

GetGlyph(nuint, Boolean)

检索字形为 ,如果索引有效,将 设置为 true

[Foundation.Export("CGGlyphAtIndex:isValidIndex:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual ushort GetGlyph (nuint glyphIndex, ref bool isValidIndex);
abstract member GetGlyph : nuint *  -> uint16
override this.GetGlyph : nuint *  -> uint16

参数

glyphIndex
System.System.UIntPtr System.unativeint
isValidIndex
Boolean

返回

属性

适用于