Partager via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

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

Property Value

Type: System.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