Shape.Container Property
Gets the IContainer that contains the Component.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Container As Control
[BrowsableAttribute(false)]
public Control Container { get; }
[BrowsableAttribute(false)]
public:
property Control^ Container {
Control^ get ();
}
[<BrowsableAttribute(false)>]
member Container : Control with get
function get Container () : Control
Property Value
Type: System.Windows.Forms.Control
A null reference (Nothing in Visual Basic).
Remarks
This property is inherited from Component and is not intended for use by Shape or by any classes that inherit from Shape.
.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)