Поделиться через


ExtendedProperties.Remove - метод (ExtendedProperty)

Обновлен: Ноябрь 2007

Removes an ExtendedProperty object from the ExtendedProperties collection.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Sub Remove ( _
    ep As ExtendedProperty _
)
'Применение
Dim instance As ExtendedProperties
Dim ep As ExtendedProperty

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

Параметры

Заметки

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 Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

ExtendedProperties Класс

ExtendedProperties - члены

Remove - перегрузка

Microsoft.Ink - пространство имен

ExtendedProperty

Ink