Initializes a new instance of the
RenderRoundRectangle class, assigning the width and height of the rectangle, the
LineDef used to draw it, and the fill brush. The location of the rectangle is set to the location of the current
RenderRoundRectangle. The dimensions of the ellipse used to draw the rounded corners are set to
5% of the corresponding rectangle's dimensions.
シンタックス
'宣言
Public Function New( _
ByVal As Unit, _
ByVal As Unit, _
ByVal As LineDef, _
ByVal As System.Drawing.Brush _
)
'使用法
Dim width As Unit
Dim height As Unit
Dim shapeLine As LineDef
Dim shapeFillBrush As System.Drawing.Brush
Dim instance As New RenderRoundRectangle(width, height, shapeLine, shapeFillBrush)
public RenderRoundRectangle(
Unit ,
Unit ,
LineDef ,
System.Drawing.Brush
)
パラメータ
- width
- The width of the rectangle.
- height
- The height of the rectangle.
- shapeLine
- The LineDef used to draw the rectangle.
- shapeFillBrush
- The brush used to fill the rectangle.
参照