PowerTools PlusPak for Windows Forms 8.0J
DrawRectangle(Pen,Single,Single,Single,Single) メソッド

幅と高さの座標の組み合わせで指定された矩形を描画します。
描画する矩形の左上端のx座標。
描画する矩形の左上端のy座標。
描画する矩形の幅。
描画する矩形の高さ。
幅と高さの座標の組み合わせで指定された矩形を描画します。
構文
Public Overloads Sub DrawRectangle( _
   ByVal pen As Pen, _
   ByVal x As Single, _
   ByVal y As Single, _
   ByVal width As Single, _
   ByVal height As Single _
) 
public void DrawRectangle( 
   Pen pen,
   float x,
   float y,
   float width,
   float height
)

パラメータ

pen
幅と高さの座標の組み合わせで指定された矩形を描画します。
x
描画する矩形の左上端のx座標。
y
描画する矩形の左上端のy座標。
width
描画する矩形の幅。
height
描画する矩形の高さ。
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

Graphics クラス
Graphics メンバ
オーバーロード一覧

Send Feedback