Share via


ContextNode.ContainsPropertyData Method

Returns true if the ContextNode object contains application-specific data stored under the specified identifier.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.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 function ContainsPropertyData(
    propertyDataId : Guid
) : boolean

Parameters

  • propertyDataId
    Type: System.Guid

    The identifier for the data.

Return Value

Type: System.Boolean
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.

Examples

This example puts a time stamp on each InkWordNode in an InkAnalyzer named theInkAnalyzer. It adds a property with a Guid named timeStampGuid, first checking to see if the node already contains a time stamp.

Dim inkWords As ContextNodeCollection = theInkAnalyzer.FindNodesOfType(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(ContextNodeType.InkWord);
foreach (ContextNode inkWord in inkWords)
{
    if (!inkWord.ContainsPropertyData(this.timeStampGuid))
    {
        inkWord.AddPropertyData(timeStampGuid, DateTime.Now);
    }
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNode Class

ContextNode Members

System.Windows.Ink Namespace

System.Windows.Ink.PropertyGuidsForAnalysisHints

System.Windows.Ink.PropertyGuidsForContextNodes

ContextNode.AddPropertyData

ContextNode.GetPropertyData

ContextNode.RemovePropertyData

ContextNode.SavePropertiesData

ContextNode.LoadPropertiesData