GlyphTypeface.AdvanceHeights Eigenschap

Definitie

Hiermee haalt u de geavanceerde hoogten op voor de glyphs die worden vertegenwoordigd door het 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)

Waarde van eigenschap

Een IDictionary<TKey,TValue> object dat sleutel-waardeparen bevat die geavanceerde hoogte-informatie voor de glyphs vertegenwoordigt. De sleutel is een UInt16 die de glyph-index identificeert. De waarde is een Double waarde die de hoogte van de voorschot vertegenwoordigt.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de verzameling geavanceerde hoogten van de glyphs in het lettertype kunt retourneren.

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

Opmerkingen

De AdvanceHeights eigenschap wordt gebruikt voor het berekenen van de verticale indeling.

Van toepassing op

Zie ook