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) |
| 程式庫 | Gdiplus.lib |
| Dll | Gdiplus.dll |