CharacterMetrics Class

 

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

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

System.Object
  System.Windows.Media.CharacterMetrics

public class CharacterMetrics

NameDescription
System_CAPS_pubmethodCharacterMetrics()

Initializes a new instance of the CharacterMetrics class.

System_CAPS_pubmethodCharacterMetrics(String)

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

NameDescription
System_CAPS_pubpropertyBaseline

Gets the baseline value for the character.

System_CAPS_pubpropertyBlackBoxHeight

Gets the height of the black box for the character.

System_CAPS_pubpropertyBlackBoxWidth

Gets the width of the black box for the character.

System_CAPS_pubpropertyBottomSideBearing

Gets the recommended white space below the black box.

System_CAPS_pubpropertyLeftSideBearing

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

System_CAPS_pubpropertyMetrics

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

System_CAPS_pubpropertyRightSideBearing

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

System_CAPS_pubpropertyTopSideBearing

Gets the recommended white space above the black box.

NameDescription
System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

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_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodToString()

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
Show: