NSLayoutManager.GetGlyph 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetGlyph(nuint) |
检索 处的字形。 |
| GetGlyph(nuint, Boolean) |
检索字形为 ,如果索引有效,将 设置为 |
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
返回
- 属性