Export (0) Print
Expand All

ContextNode.AddPropertyData Method

Adds a piece of application-specific data.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)

public void AddPropertyData (
	Guid propertyDataId,
	Object propertyData
)
public void AddPropertyData (
	Guid propertyDataId, 
	Object propertyData
)
public function AddPropertyData (
	propertyDataId : Guid, 
	propertyData : Object
)
Not applicable.

Parameters

propertyDataId

A Guid used to identify the type of data.

propertyData

The data to add.

The propertyDataId parameter can be any Guid (see PropertyGuidsForContextNodes).

This example puts a time stamp on each InkWordNode, inkWord, in an InkAnalyzer, theInkAnalyzer. The example first checks the node for a time stamp and if not found, adds a property with a Guid, timeStampGuid,

ContextNodeCollection inkWords =
    theInkAnalyzer.FindNodesOfType(ContextNodeType.InkWord);
foreach (ContextNode inkWord in inkWords)
{
    if (!inkWord.ContainsPropertyData(this.timeStampGuid))
    {
        inkWord.AddPropertyData(timeStampGuid, DateTime.Now);
    }
}

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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft