Graphics::FillRectangle 方法使用画笔填充矩形的内部。
语法
Status FillRectangle(
  [in]      const Brush  *brush,
  [in, ref] const Rect & rect
);
参数
[in] brush
类型: const Brush*
指向用于绘制矩形内部的 画笔 的指针。
[in, ref] rect
类型: const Rect
对要填充的矩形的引用。
返回值
类型: 状态
如果方法成功,则返回 Ok,这是 Status 枚举的元素。
如果 方法失败,它将返回 Status 枚举的其他元素之一。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] | 
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | gdiplusgraphics.h (包括 Gdiplus.h) | 
| Library | Gdiplus.lib | 
| DLL | Gdiplus.dll |