StrokeCollection.RemovePropertyData(Guid) Method

Definition

Removes the custom property associated with the specified Guid.

C#
public void RemovePropertyData(Guid propertyDataId);

Parameters

propertyDataId
Guid

The Guid associated with the custom property to remove.

Examples

The following example demonstrates how to remove a custom property from the StrokeCollection. This example assumes that there is an InkCanvas called inkCanvas1 and a Guid called timestamp.

C#
if (inkCanvas1.Strokes.ContainsPropertyData(timestamp))
{
    inkCanvas1.Strokes.RemovePropertyData(timestamp);
}

Applies to

Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10