This documentation is archived and is not being maintained.

Stroke.RemovePropertyData Method

Deletes a custom property from the Stroke object.

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

public void RemovePropertyData (
	Guid propertyDataId
public void RemovePropertyData (
	Guid propertyDataId
public function RemovePropertyData (
	propertyDataId : Guid
You cannot use methods in XAML.



The unique identifier for the property.

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

// Create a guid for the date/timestamp.
Guid dateTimeGuid = new Guid("03457307-3475-3450-3035-045430534046");

DateTime current = DateTime.Now;

// Check whether the property is already saved
if (thisStroke.ContainsPropertyData(dateTimeGuid))
    DateTime oldDateTime = (DateTime)thisStroke.GetPropertyData(dateTimeGuid);

    // Check whether the existing property matches the current date/timestamp
    if (!(oldDateTime == current))
        // Delete the custom property

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.

.NET Framework

Supported in: 3.0