WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IUpDownRenderer

    Show / Hide Table of Contents

    Interface IUpDownRenderer

    Renders the UpDownBase control.

    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public interface IUpDownRenderer

    Methods

    DrawArrow(Graphics, Rectangle, ButtonState, Boolean)

    Draws arrow.

    Declaration
    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
    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
    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
    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
    void Layout()

    Render(Graphics, ButtonState, ButtonState)

    Draws up and down buttons.

    Declaration
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved