GlyphTypeface.AdvanceHeights Vlastnost

Definice

Získá výšku dopředu pro glyfy reprezentované objektem GlyphTypeface .

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)

Hodnota vlastnosti

Objekt IDictionary<TKey,TValue> , který obsahuje páry klíč-hodnota, které představují informace o výšce předem pro piktogramy. Klíč je , UInt16 který identifikuje index piktogramu. Hodnota je , Double která představuje výšku zálohy.

Příklady

Následující příklad ukazuje, jak vrátit kolekci výšek dopředu z piktogramů v písmu.

// 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

Poznámky

Vlastnost AdvanceHeights se používá pro výpočet svislého rozložení.

Platí pro

Viz také