Font.TryGetGlyphFromString(String, UInt32) 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.
Tries to parse a string to get a glyph ID.
public bool TryGetGlyphFromString(string s, out uint glyph);
Parameters
- s
- String
The string representation of the glyph (name or ID).
- glyph
- UInt32
Returns the glyph ID if found.
Returns
true if the glyph was found; otherwise, false.
Remarks
The string can be a glyph name or a numeric glyph ID.