GlyphTypeface.AdvanceHeights Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Obtém as alturas de avanço para os glifos representados pelo GlyphTypeface objeto.
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 Propriedade
Um IDictionary<TKey,TValue> objeto que contém pares-chave-valor que representa informação avançada de altura para os glifos. A chave é a UInt16 que identifica o índice de glifos. O valor é a Double que representa a altura de avanço.
Exemplos
O exemplo seguinte mostra como devolver 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
Observações
A AdvanceHeights propriedade é usada para calcular a disposição vertical.