Skip to main content
CharacterMetrics Class
 
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.

Represents the metrics used to lay out a character in a device font.

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

SystemObject
  System.Windows.MediaCharacterMetrics

public class CharacterMetrics
public ref class CharacterMetrics 
type CharacterMetrics = class end
Public Class CharacterMetrics
NameDescription
System_CAPS_pubmethod CharacterMetrics

Initializes a new instance of the CharacterMetrics class.

System_CAPS_pubmethod CharacterMetrics

Initializes a new instance of the CharacterMetrics class by specifying the metrics as a string.

NameDescription
System_CAPS_pubproperty

Gets the baseline value for the character.

System_CAPS_pubproperty

Gets the height of the black box for the character.

System_CAPS_pubproperty

Gets the width of the black box for the character.

System_CAPS_pubproperty

Gets the recommended white space below the black box.

System_CAPS_pubproperty

Gets the recommended white space to the left of the black box.

System_CAPS_pubproperty

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

System_CAPS_pubproperty

Gets the recommended white space to the right of the black box.

System_CAPS_pubproperty

Gets the recommended white space above the black box.

NameDescription
System_CAPS_pubmethod Equals

Determines whether the specified CharacterMetrics object is equal to the current CharacterMetrics object.(Overrides ObjectEquals.)

System_CAPS_protmethod Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethod GetHashCode

Creates a hash code from the metric values of the CharacterMetrics object.(Overrides ObjectGetHashCode.)

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethod ToString

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top