GlyphTypeface.AdvanceHeights Eigenschaft

Definition

Ruft die Versalhöhen für die durch das GlyphTypeface-Objekt dargestellten Symbole ab.

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)

Eigenschaftswert

IDictionary<UInt16,Double>

Ein IDictionary<TKey,TValue>-Objekt mit Schlüssel-Wert-Paaren, die Versalhöheninformationen für die Symbole darstellen. Der Schlüssel ist ein UInt16, das den Symbolindex identifiziert. Der Wert ist ein Double, das die Versalhöhe darstellt.

Beispiele

Im folgenden Beispiel wird gezeigt, wie sie die Auflistung von Voraushöhen aus den Glyphen in der Schriftart zurückgeben.

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

Hinweise

Die AdvanceHeights Eigenschaft wird zum Berechnen des vertikalen Layouts verwendet.

Gilt für

Siehe auch