Edit

Share via


Font.TryGetGlyphFromString(String, UInt32) Method

Definition

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.

Applies to