Share via


ExtendedProperties.Remove Method (ExtendedProperty)

Removes an ExtendedProperty object from the ExtendedProperties collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    ep As ExtendedProperty _
)
'Usage
Dim instance As ExtendedProperties 
Dim ep As ExtendedProperty

instance.Remove(ep)
public void Remove(
    ExtendedProperty ep
)
public:
void Remove(
    ExtendedProperty^ ep
)
public function Remove(
    ep : ExtendedProperty
)

Parameters

Remarks

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.

Examples

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

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ExtendedProperties Class

ExtendedProperties Members

Remove Overload

Microsoft.Ink Namespace

ExtendedProperty

Ink