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<UInt16,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 속성은 세로 레이아웃을 계산하는 데 사용됩니다.

적용 대상

추가 정보