SimpleShape Constructor (ShapeContainer)
Initializes a new instance of the SimpleShape class, specifying a ShapeContainer as its parent.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
'宣告
Protected Sub New ( _
parent As ShapeContainer _
)
protected SimpleShape(
ShapeContainer parent
)
protected:
SimpleShape(
ShapeContainer^ parent
)
new :
parent:ShapeContainer -> SimpleShape
protected function SimpleShape(
parent : ShapeContainer
)
Parameters
- parent
Type: Microsoft.VisualBasic.PowerPacks.ShapeContainer
The ShapeContainer that is to be the parent of the shape.
Remarks
The SimpleShape class is the base class for OvalShape and RectangleShape controls. 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 SimpleShape constructor specifies the ShapeContainer that is to be the parent of the 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
Introduction to the Line and Shape Controls (Visual Studio)
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)