ContextNode.ContainsPropertyData Method
Returns true if the ContextNode object contains application-specific data stored under the specified identifier.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)
Syntax
'Declaration
Public Function ContainsPropertyData ( _
propertyDataId As Guid _
) As Boolean
'Usage
Dim instance As ContextNode
Dim propertyDataId As Guid
Dim returnValue As Boolean
returnValue = instance.ContainsPropertyData(propertyDataId)
public bool ContainsPropertyData (
Guid propertyDataId
)
public:
bool ContainsPropertyData (
Guid propertyDataId
)
public boolean ContainsPropertyData (
Guid propertyDataId
)
public function ContainsPropertyData (
propertyDataId : Guid
) : boolean
Not applicable.
Parameters
- propertyDataId
The identifier for the data.
Return Value
true if the ContextNode object contains application-specific data stored under the specified identifier; false if this node does not contain application-specific data with the specified identifier.
Example
This example puts a time stamp on each InkWordNode in an InkAnalyzer, theInkAnalyzer
. It adds a property with a GuidGuid, timeStampGuid
, first checking to see if the node already contains a time stamp.
Dim inkWords As ContextNodeCollection = _
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.InkWord)
Dim inkWord As ContextNode
For Each inkWord In inkWords
If Not inkWord.ContainsPropertyData(Me.timeStampGuid) Then
inkWord.AddPropertyData(timeStampGuid, DateTime.Now)
End If
Next inkWord
ContextNodeCollection inkWords =
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.InkWord);
foreach (ContextNode inkWord in inkWords)
{
if (!inkWord.ContainsPropertyData(this.timeStampGuid))
{
inkWord.AddPropertyData(timeStampGuid, DateTime.Now);
}
}
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
ContextNode Class
ContextNode Members
Microsoft.Ink Namespace
Microsoft.Ink.PropertyGuidsForAnalysisHints
Microsoft.Ink.PropertyGuidsForContextNodes
ContextNode.AddPropertyData
ContextNode.GetPropertyData
ContextNode.RemovePropertyData
ContextNode.SavePropertiesData
ContextNode.LoadPropertiesData