SimpleShape Constructor (Int32, Int32, Int32, Int32)
Initializes a new instance of the SimpleShape class, specifying its size and location.
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
'Declaration Protected Sub New ( _ left As Integer, _ top As Integer, _ width As Integer, _ height As Integer _ )
protected SimpleShape( int left, int top, int width, int height )
protected: SimpleShape( int left, int top, int width, int height )
new : left:int * top:int * width:int * height:int -> SimpleShape
protected function SimpleShape( left : int, top : int, width : int, height : int )
An Integer that represents the width (in pixels) of the SimpleShape.
An Integer that represents the height (in pixels) of the SimpleShape.
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 sets the location and size 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.