共用方式為


PropertyGuidsForContextNodes.Midline 欄位

指定全域唯一識別項 (GUID),以取得表示筆墨文字之中線的點陣列。

命名空間:  System.Windows.Ink
組件:  IAWinFX (在 IAWinFX.dll 中)

語法

'宣告
Public Shared ReadOnly Midline As Guid
'用途
Dim value As Guid

value = PropertyGuidsForContextNodes.Midline
public static readonly Guid Midline
public:
static initonly Guid Midline
public static final Guid Midline
public static final var Midline : Guid

備註

Midline 欄位表示型別為 InkWordContextNode 上的中線。中線是一條想像水平線,每個字元主體的頂端 (上緣除外) 都會對齊這條線。例如,拉丁字母 "d" 的中線位在圓形頂端。

範例

下列範例會檢查 AnalysisHintNodeContainsPropertyData 方法中是否有 Midline。如果 Midline 欄位存在,則會將它轉換為點陣列以填入 myMidline。

' Get the line where the top of each character is aligned on an ink word
If myAnalysisHintNode.ContainsPropertyData( _
   PropertyGuidsForContextNodes.Midline) Then

    Dim myMidline As Integer() = _
        CType(myAnalysisHintNode.GetPropertyData( _
        PropertyGuidsForContextNodes.Midline), Integer())
End If
// Get the line where the top of each character is aligned on an ink word
if (myAnalysisHintNode.ContainsPropertyData(
    PropertyGuidsForContextNodes.Midline))
{
    int[] myMidline =
        (int[])myAnalysisHintNode.GetPropertyData(
        PropertyGuidsForContextNodes.Midline);
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

PropertyGuidsForContextNodes 類別

PropertyGuidsForContextNodes 成員

System.Windows.Ink 命名空間