ExtendedProperties.Remove 方法 (ExtendedProperty)

ExtendedProperties 集合中移除 ExtendedProperty 对象。

命名空间:  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
)

参数

备注

此方法仅从墨迹数据的快照或对墨迹数据的引用中移除 ExtendedProperty 对象,而不从实际墨迹数据中移除 ExtendedProperty 对象。

示例

此 C# 示例从 Strokes 集合 theStrokes 中每个 Stroke 对象的 ExtendedProperties 属性中移除 ExtendedProperty 对象 theExtendedProperty。

// 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);
    }
}

此 Microsoft(R) Visual Basic(R) .NET 示例从 Strokes 集合 theStrokes 中每个 Stroke 对象的 ExtendedProperties 属性中移除 ExtendedProperty 对象 theExtendedProperty。

'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