UnicodeString Property
Collapse the table of content
Expand the table of content

Glyphs.UnicodeString Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the Unicode string to render in glyphs.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string UnicodeString { get; set; }
<Glyphs UnicodeString="string"/>

Property Value

Type: System.String
A Unicode string with XAML-compatible encoding. The default is an empty string.

Dependency property identifier field: UnicodeStringProperty

Glyphs does not have a content property (you do not define the glyphs by declaring text as the inner text of a Glyphs object element). Instead, you specify the individual glyphs through either UnicodeString or Indices. Of these, using UnicodeString is probably the most common, because it is the easiest to capture a Unicode string from the output of various applications that are used to compose text. You can use UnicodeString to specify the basic glyph information and then can adjust values in Indices to refine the advance and offset spacings within the set of glyphs.

UnicodeString only supports a one-to-one mapping of Unicode points to glyphs. To show surrogates or double-byte characters in multi-byte languages, use the Indices property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft