指定全域唯一識別項 (GUID),以取得或設定 GUID,表示影像或文字上的影像資料或文字資料。
命名空間: System.Windows.Ink
組件: IAWinFX (在 IAWinFX.dll 中)
語法
'宣告
Public Shared ReadOnly NodeData As Guid
'用途
Dim value As Guid
value = PropertyGuidsForContextNodes.NodeData
public static readonly Guid NodeData
public:
static initonly Guid NodeData
public static final Guid NodeData
public static final var NodeData : Guid
備註
這個欄位分別表示型別為 Image 或 TextWord 之 ContextNode 上的影像資料或文字資料。
範例
下列範例會檢查 AnalysisHintNode 的 ContainsPropertyData 方法中是否有 NodeData。如果 NodeData 欄位存在,所傳回 GUID 型別的屬性資料會填入 myCustomRcognizer。
' Get the GUID that represents the image data or text data on an image or text word
If myAnalysisHintNode.ContainsPropertyData( _
PropertyGuidsForContextNodes.NodeData) Then
Dim myNodeData As Guid = _
CType(myAnalysisHintNode.GetPropertyData( _
PropertyGuidsForContextNodes.NodeData), Guid)
End If
// Get the GUID that represents the image data or text data on an image or text word
if (myAnalysisHintNode.ContainsPropertyData(
PropertyGuidsForContextNodes.NodeData))
{
Guid myNodeData =
(Guid)myAnalysisHintNode.GetPropertyData(
PropertyGuidsForContextNodes.NodeData);
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
PropertyGuidsForContextNodes 類別