GlyphTypeface.AdvanceHeights Propiedad

Definición

Obtiene el alto de avance de los glifos representados por el 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 de propiedad

Un objeto IDictionary<TKey,TValue> que contiene pares clave-valor que representan la información del alto de avance de los glifos. La clave es un valor de tipo UInt16 que identifica el índice del glifo. El valor es un valor de tipo Double que representa el alto de avance.

Ejemplos

En el ejemplo siguiente se muestra cómo devolver la colección de alturas avanzadas de los glifos de la fuente.

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

Comentarios

La AdvanceHeights propiedad se usa para calcular el diseño vertical.

Se aplica a

Consulte también