Shape Constructor (ShapeContainer)
Initializes a new instance of the Shape class.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'Declaration
Protected Sub New ( _
parent As ShapeContainer _
)
protected Shape(
ShapeContainer parent
)
protected:
Shape(
ShapeContainer^ parent
)
new :
parent:ShapeContainer -> Shape
protected function Shape(
parent : ShapeContainer
)
Parameters
parent
Type: Microsoft.VisualBasic.PowerPacks.ShapeContainerThe ShapeContainer to be the parent of the shape.
Remarks
The Shape class is the base class for all shapes used in Windows Forms applications. Because this class is not typically used to create an instance of the class, this constructor is typically not called directly but is instead called by a derived class.
This version of the Shape constructor sets the ShapeContainer in which the shape will be located.
.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)