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
類型:Int32Integer表示的寬度 (以像素) SimpleShape。
height
類型:Int32Integer表示的高度 (以像素) SimpleShape。
備註
SimpleShape類別是基底類別OvalShape和RectangleShape控制項。 因為這個類別不通常用來建立類別的執行個體,通常不會直接呼叫這個建構函式,但是而由衍生類別呼叫。
這一版的SimpleShape建構函式設定的位置和圖形的大小。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.VisualBasic.PowerPacks 命名空間
其他資源
Line 和 Shape 控制項簡介 (Visual Studio)