指定一个全局唯一标识符 (GUID),该 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 字段表示类型为 InkWord 的 ContextNode 的基线。基线是与每个字符(不包括下行部分)的底部与之齐平的假想水平线。例如,拉丁字母“p”的基线位于圆圈的底部。
示例
下面的示例在 AnalysisHintNode 的 ContainsPropertyData 方法中检查确认是否有 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 类