共用方式為


SimpleShape 建構函式 (Int32, Int32, Int32, Int32)

初始化的新執行個體SimpleShape類別,指定其大小和位置。

命名空間:  Microsoft.VisualBasic.PowerPacks
組件:  Microsoft.VisualBasic.PowerPacks.Vs (在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

語法

'宣告
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
)

參數

  • left
    類型:Int32
  • top
    類型:Int32
  • width
    類型:Int32

    Integer表示的寬度 (以像素) SimpleShape

  • height
    類型:Int32

    Integer表示的高度 (以像素) SimpleShape

備註

SimpleShape類別是基底類別OvalShapeRectangleShape控制項。 因為這個類別不通常用來建立類別的執行個體,通常不會直接呼叫這個建構函式,但是而由衍生類別呼叫。

這一版的SimpleShape建構函式設定的位置和圖形的大小。

.NET Framework 安全性

請參閱

參考

SimpleShape 類別

SimpleShape 多載

Microsoft.VisualBasic.PowerPacks 命名空間

其他資源

Line 和 Shape 控制項簡介 (Visual Studio)

如何:使用 LineShape 控制項繪製線條 (Visual Studio)

如何:使用 OvalShape 和 RectangleShape 控制項繪製圖案 (Visual Studio)