ContextNode.GetPropertyData Method

Returns application-specific data that was added with the specified identifier.

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

Syntax

'Declaration
Public Function GetPropertyData ( _
    propertyDataId As Guid _
) As Object
'Usage
Dim instance As ContextNode
Dim propertyDataId As Guid
Dim returnValue As Object

returnValue = instance.GetPropertyData(propertyDataId)
public Object GetPropertyData (
    Guid propertyDataId
)
public:
Object^ GetPropertyData (
    Guid propertyDataId
)
public Object GetPropertyData (
    Guid propertyDataId
)
public function GetPropertyData (
    propertyDataId : Guid
) : Object
Not applicable.

Parameters

  • propertyDataId
    The identifier for the data.

Return Value

The application-specific data that was added with the specified identifier.

Remarks

In addition to application-specific data, you can also use this method to get internal data stored with the identifiers described by the PropertyGuidsForAnalysisHints and PropertyGuidsForContextNodes classes.

Example

This example looks for a property added with the Guid, timeStampGuid. It then puts the value into the Content property of a Label, timeStampLabel.

If inkWord.ContainsPropertyData(Me.timeStampGuid) Then
    Dim timeStamp As DateTime = CType(inkWord.GetPropertyData(Me.timeStampGuid), DateTime)
    timeStampLabel.Content = timeStamp.ToShortTimeString()
End If
if (inkWord.ContainsPropertyData(this.timeStampGuid))
{
    DateTime timeStamp =
        (DateTime)inkWord.GetPropertyData(this.timeStampGuid);
    timeStampLabel.Content = timeStamp.ToShortTimeString();
}

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
System.Windows.Ink Namespace
System.Windows.Ink.PropertyGuidsForAnalysisHints
System.Windows.Ink.PropertyGuidsForContextNodes
ContextNode.AddPropertyData
ContextNode.ContainsPropertyData
ContextNode.RemovePropertyData
ContextNode.SavePropertiesData
ContextNode.LoadPropertiesData