Initializes a new instance of the
RenderRectangle class, assigning the location and the size of the rectangle, and the
LineDef used to draw it.
シンタックス
'宣言
Public Function New( _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As LineDef _
)
'使用法
Dim x As Unit
Dim y As Unit
Dim width As Unit
Dim height As Unit
Dim shapeLine As LineDef
Dim instance As New RenderRectangle(x, y, width, height, shapeLine)
public RenderRectangle(
Unit ,
Unit ,
Unit ,
Unit ,
LineDef
)
パラメータ
- x
- The X coordinate of the rectangle, relative to the current object's location.
- y
- The Y coordinate of the rectangle, relative to the current object's location.
- width
- The width of the rectangle.
- height
- The height of the rectangle.
- shapeLine
- The LineDef used to draw the rectangle.
参照