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

'Declaration
Protected Sub New ( _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer _
)
'Usage
Dim x As Integer 
Dim y As Integer 
Dim width As Integer 
Dim height As Integer 

Dim instance As New SimpleShape(x, y, width, _
    height)
protected SimpleShape(
    int x,
    int y,
    int width,
    int height
)
protected:
SimpleShape(
    int x, 
    int y, 
    int width, 
    int height
)
protected function SimpleShape(
    x : int, 
    y : int, 
    width : int, 
    height : int
)

Parameters

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.

.NET Framework Security

See Also

Reference

SimpleShape Class

SimpleShape Members

SimpleShape Overload

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)