This topic has not yet been rated - Rate this topic

ExtendedProperties.Remove Method (ExtendedProperty)

Removes an ExtendedProperty object from the ExtendedProperties collection.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

public void Remove (
	ExtendedProperty ep
)
public void Remove (
	ExtendedProperty ep
)
public function Remove (
	ep : ExtendedProperty
)
Not applicable.

Parameters

ep

The ExtendedProperty object to remove from the ExtendedProperties collection.

This method removes the ExtendedProperty object only from a snapshot of, or reference to, the ink data and does not remove the ExtendedProperty object from the actual ink data.

This C# example removes an ExtendedProperty object, theExtendedProperty, from the ExtendedProperties property of every Stroke object in the Strokes collection, theStrokes.

// Remove the ExtendedProperty object from the ExtendedProperties property of
// each stroke in the strokes collection.
foreach (Stroke theStroke in theStrokes)
{
    // Test for theExtendedProperty on this stroke.
    if (theStroke.ExtendedProperties.Contains(theExtendedProperty))
    {
        // Remove the extended property from this stroke's extended
        // properties list.
        theStroke.ExtendedProperties.Remove(theExtendedProperty);
    }
}

This Microsoft® Visual Basic® .NET example removes an ExtendedProperty object, theExtendedProperty, from the ExtendedProperties property of every Stroke object in the Strokes collection, theStrokes.

'Remove the ExtendedProperty object from the ExtendedProperties property of
'each stroke in the strokes collection.
For Each theStroke As Stroke In theStrokes
    'Test for theExtendedProperty on this stroke.
    If theStroke.ExtendedProperties.Contains(theExtendedProperty) Then
        'Remove the extended property from this stroke's extended
        'properties list.
        theStroke.ExtendedProperties.Remove(theExtendedProperty)
    End If
Next

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
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.