Share via


SimpleShape Constructor (Int32, Int32, Int32, Int32)

 

Initializes a new instance of the SimpleShape class, specifying its size and location.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

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 Sub New (
    left As Integer,
    top As Integer,
    width As Integer,
    height As Integer
)

Parameters

  • x
    An Integer that represents the left edge (in pixels) of the SimpleShape.
  • y
    An Integer that represents the top (in pixels) of the SimpleShape.

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 sets the location and size of the shape.

See Also

SimpleShape Overload
SimpleShape Class
Microsoft.VisualBasic.PowerPacks Namespace
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)

Return to top