GlyphTypeface.AdvanceHeights GlyphTypeface.AdvanceHeights GlyphTypeface.AdvanceHeights GlyphTypeface.AdvanceHeights Property

Définition

Obtient les hauteurs avancées pour les glyphes représentés par l'objet GlyphTypeface.Gets the advance heights for the glyphs represented by the GlyphTypeface object.

public:
 property System::Collections::Generic::IDictionary<System::UInt16, double> ^ AdvanceHeights { System::Collections::Generic::IDictionary<System::UInt16, double> ^ get(); };
public System.Collections.Generic.IDictionary<ushort,double> AdvanceHeights { get; }
member this.AdvanceHeights : System.Collections.Generic.IDictionary<uint16, double>
Public ReadOnly Property AdvanceHeights As IDictionary(Of UShort, Double)

Valeur de propriété

Un objet IDictionary<TKey,TValue> qui contient des paires clé-valeur qui représentent des informations sur les hauteurs avancées pour les glyphes.An IDictionary<TKey,TValue> object that contains key-value pairs that represents advance height information for the glyphs. La clé est un UInt16 qui identifie l'index des glyphes.The key is a UInt16 that identifies the glyph index. La valeur est un Double qui représente la hauteur avancée.The value is a Double that represents the advance height.

Exemples

L’exemple suivant montre comment retourner la collection de hauteurs avancées à partir des glyphes de la police.The following example shows how to return the collection of advance heights from the glyphs in the font.

// Create a glyph typeface by referencing the Verdana font.
GlyphTypeface glyphTypeface = new GlyphTypeface(new Uri("file:///C:\\WINDOWS\\Fonts\\verdana.ttf"));

// Retrieve the advance heights for the glyphs in the Verdana font.
IDictionary<ushort, double> dictionary = glyphTypeface.AdvanceHeights;
foreach (KeyValuePair<ushort, double> kvp in dictionary)
{
    // Retrieve the key/value pair information.
}
' Create a glyph typeface by referencing the Verdana font.
Dim glyphTypeface As New GlyphTypeface(New Uri("file:///C:\WINDOWS\Fonts\verdana.ttf"))

' Retrieve the advance heights for the glyphs in the Verdana font.
Dim dictionary As IDictionary(Of UShort, Double) = glyphTypeface.AdvanceHeights
For Each kvp As KeyValuePair(Of UShort, Double) In dictionary
    ' Retrieve the key/value pair information.
Next kvp

Remarques

La AdvanceHeights propriété est utilisée pour calculer la disposition verticale.The AdvanceHeights property is used for calculating vertical layout.

S’applique à

Voir aussi