GridButtonColumn.DrawButton Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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);
member this.DrawButton : System.Drawing.Graphics * System.Drawing.Brush * System.Drawing.Brush * System.Drawing.Font * System.Drawing.Rectangle * System.Drawing.Bitmap * string * System.Windows.Forms.ButtonState * bool -> unit
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)
Parameters
- g
- Graphics
- bkBrush
- Brush
- textBrush
- Brush
- textFont
- Font
- rect
- Rectangle
- buttomBmp
- Bitmap
- buttonLabel
- String
- btnState
- ButtonState
- bEnabled
- Boolean
Applies to
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);
member this.DrawButton : System.Drawing.Graphics * System.Drawing.Brush * System.Drawing.SolidBrush * System.Drawing.Font * System.Drawing.Rectangle * System.Drawing.Bitmap * string * System.Windows.Forms.ButtonState * bool -> unit
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)
Parameters
- g
- Graphics
- bkBrush
- Brush
- textBrush
- SolidBrush
- textFont
- Font
- rect
- Rectangle
- buttomBmp
- Bitmap
- buttonLabel
- String
- btnState
- ButtonState
- bEnabled
- Boolean
Applies to
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);
member this.DrawButton : System.Drawing.Graphics * System.Drawing.Brush * System.Drawing.SolidBrush * System.Drawing.Font * System.Drawing.Rectangle * System.Drawing.Bitmap * string * System.Windows.Forms.ButtonState * bool * bool -> unit
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)
Parameters
- g
- Graphics
- bkBrush
- Brush
- textBrush
- SolidBrush
- textFont
- Font
- rect
- Rectangle
- buttomBmp
- Bitmap
- buttonLabel
- String
- btnState
- ButtonState
- bEnabled
- Boolean
- useGdiPlus
- Boolean