StrokeCollection::GetPropertyData Method (Guid)

 

Returns the value of the custom property associated with the specified Guid.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public:
Object^ GetPropertyData(
	Guid propertyDataId
)

Parameters

propertyDataId
Type: System::Guid

The Guid associated with the custom property to get.

Return Value

Type: System::Object^

The value of the custom property associated with the specified Guid.

Exception Condition
ArgumentException

propertyDataId is not associated with a custom property of the StrokeCollection.

The AddPropertyData and GetPropertyData methods enable you to add custom properties to a StrokeCollection. You can then include extra information with a StrokeCollection.

The following example demonstrates how to add and get custom property data. The AddTimeStamp_Click method uses the AddPropertyData method to add the current time to the StrokeCollection. The GetTimeStap_Click method uses the GetPropertyData method to retrieve the timestamp from the StrokeCollection. This example assumes that there is an InkCanvas called inkCanvas1.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: