Share via


GlyphTypeface.AdvanceHeights Propriedade

Definição

Obtém as alturas de avanço para os glifos representados pelo objeto 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)

Valor da propriedade

Um IDictionary<TKey,TValue> objeto que contém pares chave-valor que representa informações de altura avançadas para os glifos. A chave é um UInt16 que identifica o índice de glifo. O valor é um Double que representa a altura de avanço.

Exemplos

O exemplo a seguir mostra como retornar a coleção de alturas avançadas dos glifos na fonte.

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

Comentários

A AdvanceHeights propriedade é usada para calcular o layout vertical.

Aplica-se a

Confira também