共用方式為


Glyphs.UnicodeString Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the Unicode string to render in glyphs.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property UnicodeString As String
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.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.