GlyphTypeface.AdvanceHeights Właściwość

Definicja

Pobiera wysokość zaliczki dla glifów reprezentowanych przez GlyphTypeface obiekt.

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)

Wartość właściwości

IDictionary<UInt16,Double>

IDictionary<TKey,TValue> Obiekt zawierający pary klucz-wartość reprezentujące informacje o wysokości zaliczki dla glifów. Klucz jest elementem identyfikującym UInt16 indeks glyph. Wartość jest wartością reprezentującą Double wysokość zaliczki.

Przykłady

W poniższym przykładzie pokazano, jak zwrócić kolekcję wysokości z góry z glifów w czcionki.

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

Uwagi

Właściwość AdvanceHeights jest używana do obliczania układu pionowego.

Dotyczy

Zobacz też