System::Drawing::Graphics::FillRectangle 方法

Graphics::FillRectangle(const SharedPtr<Brush>&, float, float, float, float) method

使用指定的画笔填充指定的矩形。

void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, float x, float y, float width, float height)
参数类型描述
brushconst SharedPtr<Brush>&用于填充的 Brush 对象
xfloat要填充的矩形左上角的 X 坐标
yfloat要填充的矩形左上角的 Y 坐标
widthfloat要填充的矩形的宽度
heightfloat要填充的矩形的高度

另见

Graphics::FillRectangle(const SharedPtr<Brush>&, int, int, int, int) method

使用指定的画笔填充指定的矩形。

void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, int x, int y, int width, int height)
参数类型描述
brushconst SharedPtr<Brush>&用于填充的 Brush 对象
xint要填充的矩形左上角的 X 坐标
yint要填充的矩形左上角的 Y 坐标
widthint要填充的矩形的宽度
heightint要填充的矩形的高度

另见

Graphics::FillRectangle(const SharedPtr<Brush>&, Rectangle) method

使用指定的画笔填充指定的矩形。

void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, Rectangle rect)
参数类型描述
brushconst SharedPtr<Brush>&用于填充的 Brush 对象
rectRectangle一个 Rectangle 对象,指定要填充的矩形的位置和大小

另见

Graphics::FillRectangle(const SharedPtr<Brush>&, RectangleF) method

使用指定的画笔填充指定的矩形。

void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, RectangleF rect)
参数类型描述
brushconst SharedPtr<Brush>&用于填充的 Brush 对象
rectRectangleF一个 RectangleF 对象,指定要填充的矩形的位置和大小

另见