DrawButton() public static method

public static DrawButton ( Graphics g, Rectangle buttonRect, ComboBoxStates state ) : void
g System.Drawing.Graphics
buttonRect System.Drawing.Rectangle
state ComboBoxStates
return void
Exemplo n.º 1
0
 public static void DrawButton(Graphics g, Rectangle buttonRect, ComboBoxStates state)
 {
     ThemeManager.DrawButton(g, buttonRect, buttonRect, (PushButtonStates)state);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Draws a push button in the specified state, on the specified graphics
 /// surface, and within the specified bounds
 /// </summary>
 /// <param name="g">The Graphics to draw on</param>
 /// <param name="buttonRect">The Rectangle that represents the dimensions
 /// of the button</param>
 /// <param name="state">A PushButtonState value that specifies the
 /// state to draw the button in</param>
 /// <param name="flatStyle">If true, then the button is drawn in flat style, but only if VisualStyles are not being used.</param>
 public static void DrawButton(Graphics g, Rectangle buttonRect, PushButtonState state, bool flatStyle)
 {
     ThemeManager.DrawButton(g, buttonRect, buttonRect, state, flatStyle);
 }