GridButtonColumn.DrawButton 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DrawButton(Graphics, Brush, Brush, Font, Rectangle, Bitmap, String, ButtonState, Boolean)
public:
void DrawButton(System::Drawing::Graphics ^ g, System::Drawing::Brush ^ bkBrush, System::Drawing::Brush ^ textBrush, System::Drawing::Font ^ textFont, System::Drawing::Rectangle rect, System::Drawing::Bitmap ^ buttomBmp, System::String ^ buttonLabel, System::Windows::Forms::ButtonState btnState, bool bEnabled);
public void DrawButton (System.Drawing.Graphics g, System.Drawing.Brush bkBrush, System.Drawing.Brush textBrush, System.Drawing.Font textFont, System.Drawing.Rectangle rect, System.Drawing.Bitmap buttomBmp, string buttonLabel, System.Windows.Forms.ButtonState btnState, bool bEnabled);
Public Sub DrawButton (g As Graphics, bkBrush As Brush, textBrush As Brush, textFont As Font, rect As Rectangle, buttomBmp As Bitmap, buttonLabel As String, btnState As ButtonState, bEnabled As Boolean)
參數
- g
- Graphics
- bkBrush
- Brush
- textBrush
- Brush
- textFont
- Font
- rect
- Rectangle
- buttomBmp
- Bitmap
- buttonLabel
- String
- btnState
- ButtonState
- bEnabled
- Boolean
適用於
DrawButton(Graphics, Brush, SolidBrush, Font, Rectangle, Bitmap, String, ButtonState, Boolean)
public:
void DrawButton(System::Drawing::Graphics ^ g, System::Drawing::Brush ^ bkBrush, System::Drawing::SolidBrush ^ textBrush, System::Drawing::Font ^ textFont, System::Drawing::Rectangle rect, System::Drawing::Bitmap ^ buttomBmp, System::String ^ buttonLabel, System::Windows::Forms::ButtonState btnState, bool bEnabled);
public void DrawButton (System.Drawing.Graphics g, System.Drawing.Brush bkBrush, System.Drawing.SolidBrush textBrush, System.Drawing.Font textFont, System.Drawing.Rectangle rect, System.Drawing.Bitmap buttomBmp, string buttonLabel, System.Windows.Forms.ButtonState btnState, bool bEnabled);
Public Sub DrawButton (g As Graphics, bkBrush As Brush, textBrush As SolidBrush, textFont As Font, rect As Rectangle, buttomBmp As Bitmap, buttonLabel As String, btnState As ButtonState, bEnabled As Boolean)
參數
- g
- Graphics
- bkBrush
- Brush
- textBrush
- SolidBrush
- textFont
- Font
- rect
- Rectangle
- buttomBmp
- Bitmap
- buttonLabel
- String
- btnState
- ButtonState
- bEnabled
- Boolean
適用於
DrawButton(Graphics, Brush, SolidBrush, Font, Rectangle, Bitmap, String, ButtonState, Boolean, Boolean)
public:
void DrawButton(System::Drawing::Graphics ^ g, System::Drawing::Brush ^ bkBrush, System::Drawing::SolidBrush ^ textBrush, System::Drawing::Font ^ textFont, System::Drawing::Rectangle rect, System::Drawing::Bitmap ^ buttomBmp, System::String ^ buttonLabel, System::Windows::Forms::ButtonState btnState, bool bEnabled, bool useGdiPlus);
public void DrawButton (System.Drawing.Graphics g, System.Drawing.Brush bkBrush, System.Drawing.SolidBrush textBrush, System.Drawing.Font textFont, System.Drawing.Rectangle rect, System.Drawing.Bitmap buttomBmp, string buttonLabel, System.Windows.Forms.ButtonState btnState, bool bEnabled, bool useGdiPlus);
Public Sub DrawButton (g As Graphics, bkBrush As Brush, textBrush As SolidBrush, textFont As Font, rect As Rectangle, buttomBmp As Bitmap, buttonLabel As String, btnState As ButtonState, bEnabled As Boolean, useGdiPlus As Boolean)
參數
- g
- Graphics
- bkBrush
- Brush
- textBrush
- SolidBrush
- textFont
- Font
- rect
- Rectangle
- buttomBmp
- Bitmap
- buttonLabel
- String
- btnState
- ButtonState
- bEnabled
- Boolean
- useGdiPlus
- Boolean