Shape.IsDisposed Property
Gets a value indicating whether a line or shape control has been disposed of.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'إقرار
<BrowsableAttribute(False)> _
Public ReadOnly Property IsDisposed As Boolean
Get
'الاستخدام
Dim instance As Shape
Dim value As Boolean
value = instance.IsDisposed
[BrowsableAttribute(false)]
public bool IsDisposed { get; }
[BrowsableAttribute(false)]
public:
property bool IsDisposed {
bool get ();
}
[<BrowsableAttribute(false)>]
member IsDisposed : bool
function get IsDisposed () : boolean
Property Value
Type: System.Boolean
true if the control has been disposed of; otherwise, false.
Remarks
When this property returns true, the control is disposed of and can no longer be referenced as a valid Windows control. Even though the instance of a control is disposed of, it is still maintained in memory until it is removed from memory through garbage collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualBasic.PowerPacks Namespace
Other Resources
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)