StrokeCollection::GetPropertyData Method (Guid)
Returns the value of the custom property associated with the specified Guid.
Assembly: PresentationCore (in PresentationCore.dll)
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.
Available since 3.0