Class UpDownOffice2007Renderer
Renders UpDownBase control with Office2007 style.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class UpDownOffice2007Renderer : UpDownRenderer, IUpDownRenderer
Constructors
UpDownOffice2007Renderer(UpDownBase, Office2007Theme)
Initializes a new instance of the UpDownOffice2007Renderer class.
Declaration
public UpDownOffice2007Renderer(UpDownBase upDownControl, Office2007Theme scheme)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.UpDownBase | upDownControl | Control to render. |
Office2007Theme | scheme | Color scheme of Office2007 style. |
Properties
BorderColor
Gets border color for UpDownControl.
Declaration
public Color BorderColor { get; }
Property Value
Type |
---|
System.Drawing.Color |
ColorSheme
Gets or sets the color scheme to render with.
Declaration
public Office2007Theme ColorSheme { get; set; }
Property Value
Type |
---|
Office2007Theme |
Methods
DrawArrow(Graphics, Rectangle, ButtonState, Boolean)
Draws arrow with Office2007 style.
Declaration
public override void DrawArrow(Graphics g, Rectangle buttonRectangle, ButtonState buttonState, bool upper)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle where the arrow will be drawn. |
System.Windows.Forms.ButtonState | buttonState | State of button where the arrow will be drawn. |
System.Boolean | upper | Indicates whether the arrow is upper. |
Overrides
DrawScrollButton(Graphics, Rectangle, ButtonState, ButtonID)
Draws button's background, border and arrow.
Declaration
public override void DrawScrollButton(Graphics g, Rectangle buttonRectangle, ButtonState buttonState, ButtonID buttonID)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle of button. |
System.Windows.Forms.ButtonState | buttonState | State of button. |
ButtonID | buttonID | Indicates whether the arrow is up-button or down-button. |
Overrides
DrawScrollButtonBackground(Graphics, Rectangle, ButtonState)
Draws button's background with Office2007 style.
Declaration
public override void DrawScrollButtonBackground(Graphics g, Rectangle buttonRectangle, ButtonState buttonState)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle of button. |
System.Windows.Forms.ButtonState | buttonState | State of button. |
Overrides
DrawScrollButtonBorder(Graphics, Rectangle, ButtonState)
Draws button's border with Office2007 style.
Declaration
public override void DrawScrollButtonBorder(Graphics g, Rectangle buttonRectangle, ButtonState buttonState)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle of button. |
System.Windows.Forms.ButtonState | buttonState | State of button. |
Overrides
OnColorSchemeChanged()
Changes the color table according color scheme.
Declaration
protected virtual void OnColorSchemeChanged()
Render(Graphics, ButtonState, ButtonState)
Draws button's background, border and arrow with Office2007 style.
Declaration
public override void Render(Graphics g, ButtonState upButtonState, ButtonState downButtonState)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Windows.Forms.ButtonState | upButtonState | State of up button. |
System.Windows.Forms.ButtonState | downButtonState | State of down button. |