CharacterMetrics.Metrics Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a comma-delimited string representing metric values.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public string Metrics { get; set; }

Property Value

Type: System.String

A value of type String.

The String value is a comma-delimited string that specifies the CharacterMetrics properties in the following order:

The first two properties, BlackBoxWidth and BlackBoxHeight, are required. However, the other five properties are optional, and will default to zero if not specified. For example, if you specify the string value of "0.75,0.75,,0.1" for the metrics parameter, the BlackBoxWidth, BlackBoxHeight, and LeftSideBearing properties are set—the unspecified properties are set to zero.

.NET Framework
Available since 3.0
Return to top
Show: