Class UpDownRenderer
Basic abstract class for rendering UpDownBase control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public abstract class UpDownRenderer : IUpDownRenderer
Constructors
UpDownRenderer(UpDownBase)
Declaration
public UpDownRenderer(UpDownBase upDownControl)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.UpDownBase | upDownControl |
Properties
DownButtonRectangle
Gets the bounds of down-button.
Declaration
protected Rectangle DownButtonRectangle { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
UpButtonRectangle
Gets the bounds of up-button.
Declaration
protected Rectangle UpButtonRectangle { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
UpDownButtons
Gets the up-down buttons of rendering control.
Declaration
protected Control UpDownButtons { get; }
Property Value
Type |
---|
System.Windows.Forms.Control |
UpDownControl
Gets the control that is rendering.
Declaration
protected UpDownBase UpDownControl { get; }
Property Value
Type |
---|
System.Windows.Forms.UpDownBase |
UpDownSpinOrientation
Gets the spin orientation of rendering control.
Declaration
protected Orientation UpDownSpinOrientation { get; }
Property Value
Type |
---|
System.Windows.Forms.Orientation |
UpDownTextBox
Gets the text box of rendering control.
Declaration
protected Control UpDownTextBox { get; }
Property Value
Type |
---|
System.Windows.Forms.Control |
Methods
DrawArrow(Graphics, Rectangle, ButtonState, Boolean)
Draws arrow.
Declaration
public abstract 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. |
DrawScrollButton(Graphics, Rectangle, ButtonState, ButtonID)
Draws button's background, border and arrow.
Declaration
public virtual 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. |
DrawScrollButtonBackground(Graphics, Rectangle, ButtonState)
Draws button's background.
Declaration
public abstract 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. |
DrawScrollButtonBorder(Graphics, Rectangle, ButtonState)
Draws button's border.
Declaration
public abstract 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. |
Layout()
Recalculates and sets button's rectangles.
Declaration
public void Layout()
Render(Graphics, ButtonState, ButtonState)
Draws up and down buttons.
Declaration
public virtual 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. |