Font.TryGetGlyph 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 |
|---|---|
| TryGetGlyph(Int32, UInt32) |
Tries to get the glyph ID for a Unicode code point. |
| TryGetGlyph(UInt32, UInt32) |
Tries to get the glyph ID for a Unicode code point. |
| TryGetGlyph(Int32, UInt32, UInt32) |
Tries to get the glyph ID for a Unicode code point with a variation selector. |
| TryGetGlyph(UInt32, UInt32, UInt32) |
Tries to get the glyph ID for a Unicode code point with a variation selector. |
TryGetGlyph(UInt32, UInt32)
TryGetGlyph(Int32, UInt32, UInt32)
Tries to get the glyph ID for a Unicode code point with a variation selector.
public bool TryGetGlyph(int unicode, uint variationSelector, out uint glyph);
Parameters
- unicode
- Int32
The Unicode code point.
- variationSelector
- UInt32
The variation selector code point.
- glyph
- UInt32
Returns the glyph ID if found.
Returns
true if the glyph was found; otherwise, false.
Applies to
TryGetGlyph(UInt32, UInt32, UInt32)
Tries to get the glyph ID for a Unicode code point with a variation selector.
public bool TryGetGlyph(uint unicode, uint variationSelector, out uint glyph);
Parameters
- unicode
- UInt32
The Unicode code point.
- variationSelector
- UInt32
The variation selector code point.
- glyph
- UInt32
Returns the glyph ID if found.
Returns
true if the glyph was found; otherwise, false.