共用方式為


PropertyGuidsForContextNodes.Baseline 欄位

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

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

語法

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

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

備註

Baseline 欄位表示型別為 InkWordContextNode 的基線。基線是一條想像水平線,每個字元的基底 (下緣除外) 都會對齊這條線。例如,拉丁字母 "p" 的基線位在圓形底端。

範例

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

' Get the base of each character in a line of text
If myAnalysisHintNode.ContainsPropertyData( _
   PropertyGuidsForContextNodes.Baseline) Then

    Dim myBaseline As Integer() = _
        CType(myAnalysisHintNode.GetPropertyData( _
        PropertyGuidsForContextNodes.Baseline), Integer())
End If
// Get the base of each character in a line of text
if (myAnalysisHintNode.ContainsPropertyData(
    PropertyGuidsForContextNodes.Baseline))
{
    int[] myBaseline =
        (int[])myAnalysisHintNode.GetPropertyData(
        PropertyGuidsForContextNodes.Baseline);
}

平台

Windows Vista

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

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

PropertyGuidsForContextNodes 類別

PropertyGuidsForContextNodes 成員

System.Windows.Ink 命名空間