GlyphTypeface.AdvanceHeights プロパティ

定義

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)

プロパティ値

グリフのアドバンス高情報を表すキーと値のペアを格納する IDictionary<TKey,TValue> オブジェクト。 キーは、グリフのインデックスを識別する UInt16 です。 値は、アドバンス高を表す Double です。

次の例は、フォント内のグリフから高度な高さのコレクションを返す方法を示しています。

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

注釈

プロパティは AdvanceHeights 、垂直レイアウトの計算に使用されます。

適用対象

こちらもご覧ください