This documentation is archived and is not being maintained.

Stroke::AddPropertyData Method

Adds a custom property to the Stroke object.

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

public:
void AddPropertyData(
	Guid propertyDataId, 
	Object^ propertyData
)

Parameters

propertyDataId
Type: System::Guid
The unique identifier for the property.
propertyData
Type: System::Object
The value of the custom property. propertyData must be of type Char, Byte,Int16,,UInt16, Int32, UInt32, Int64, UInt64, Single, Double, DateTime, Boolean, String, Decimal or an array of these data types, except String, which is not allowed.

ExceptionCondition
ArgumentException

The propertyData argument is not one of the allowed data types listed in the Parameters section.

This method is useful if you need to store extra information in the Stroke.

The following example demonstrates how to add a custom property to a Stroke object.

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

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: