Bagikan melalui


ModelElement.IsDeleted Property

Gets the IsDeleted flag and checks to see whether the element has been deleted from the model.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property IsDeleted As Boolean
[BrowsableAttribute(false)]
public bool IsDeleted { get; }
[BrowsableAttribute(false)]
public:
property bool IsDeleted {
    bool get ();
}
[<BrowsableAttribute(false)>]
member IsDeleted : bool with get
function get IsDeleted () : boolean

Property Value

Type: Boolean
true if the element has been deleted from the model; otherwise, false.

Remarks

Deleted elements are not immediately destroyed. This enables the undo command to undo the deletion.

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace