menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellUpDownButton - API Reference

    Show / Hide Table of Contents

    Class GridCellUpDownButton

    Defines the up / down cell button elements of a GridNumericUpDownCellRenderer.

    Inheritance
    System.Object
    NonFinalizeDisposable
    GridCellButton
    GridCellUpDownButton
    EnhancedUpDownButton
    Implements
    System.IDisposable
    Inherited Members
    GridCellButton.Draw(Graphics, Int32, Int32, Boolean, GridStyleInfo)
    GridCellButton.DrawMetroButtonStyle(Graphics, Rectangle, ButtonState, String, Boolean)
    GridCellButton.IsHovering(Int32, Int32)
    GridCellButton.SetHovering(GridCellHitTestInfo, Boolean)
    GridCellButton.IsMouseDown(Int32, Int32)
    GridCellButton.SetMouseDown(GridCellHitTestInfo, Boolean)
    GridCellButton.IsPushed(Int32, Int32)
    GridCellButton.SetPushed(Int32, Int32, Rectangle, Boolean)
    GridCellButton.HitTest(Int32, Int32, MouseEventArgs, IMouseController)
    GridCellButton.MouseHoverEnter(GridCellHitTestInfo)
    GridCellButton.MouseHover(MouseEventArgs, GridCellHitTestInfo)
    GridCellButton.MouseHoverLeave(EventArgs, GridCellHitTestInfo)
    GridCellButton.GetCursor(GridCellHitTestInfo)
    GridCellButton.OnClicked(GridCellEventArgs)
    GridCellButton.OnHoveringChanged(GridCellEventArgs)
    GridCellButton.OnMouseDownChanged(GridCellEventArgs)
    GridCellButton.OnPushedChanged(GridCellEventArgs)
    GridCellButton.Bounds
    GridCellButton.Text
    GridCellButton.MouseDownInfo
    GridCellButton.Grid
    GridCellButton.Owner
    GridCellButton.FireClickOnMouseUp
    GridCellButton.Clicked
    GridCellButton.HoveringChanged
    GridCellButton.MouseDownChanged
    GridCellButton.PushedChanged
    NonFinalizeDisposable.Dispose()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridCellUpDownButton : GridCellButton, IDisposable
    Remarks

    The up-down buttons are XP Themes enabled. They will be drawn with a theme if ThemesEnabled is True.

    The button supports auto-clicking. When the user holds the mouse on a button, the button will continuously raise Clicked events.

    Constructors

    GridCellUpDownButton(GridCellRendererBase, ScrollButton)

    Initializes a new GridCellUpDownButton and associates it with a GridCellRendererBase and saves the System.Windows.Forms.ScrollButton type.

    Declaration
    public GridCellUpDownButton(GridCellRendererBase control, ScrollButton button)
    Parameters
    Type Name Description
    GridCellRendererBase control

    The GridCellRendererBase that manages the GridCellButton.

    System.Windows.Forms.ScrollButton button

    The System.Windows.Forms.ScrollButton type of this button. Up or down.

    Properties

    ButtonType

    Gets the System.Windows.Forms.ScrollButton of this current button: Up or down.

    Declaration
    public ScrollButton ButtonType { get; }
    Property Value
    Type Description
    System.Windows.Forms.ScrollButton

    Methods

    CancelMode(GridCellHitTestInfo)

    Occurs when the current mouse operation is canceled.

    Declaration
    public override void CancelMode(GridCellHitTestInfo ht)
    Parameters
    Type Name Description
    GridCellHitTestInfo ht

    The GridCellHitTestInfo with saved hit-test information about the mouse event.

    Overrides
    GridCellButton.CancelMode(GridCellHitTestInfo)

    Dispose(Boolean)

    Used to dispose the GridCellUpDownButton

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Boolean to control disposing.

    Overrides
    GridCellButton.Dispose(Boolean)

    DrawButton(Graphics, Rectangle, ButtonState, GridStyleInfo)

    Draws a button using System.Windows.Forms.ControlPaint.DrawButton(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.ButtonState) or if XP Themes are enabled, button will be drawn themed.

    Declaration
    public override void DrawButton(Graphics g, Rectangle rect, ButtonState buttonState, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics context of the canvas.

    System.Drawing.Rectangle rect

    The System.Drawing.Rectangle with the bounds.

    System.Windows.Forms.ButtonState buttonState

    A System.Windows.Forms.ButtonState that specifies the current state.

    GridStyleInfo style

    The style information for the cell.

    Overrides
    GridCellButton.DrawButton(Graphics, Rectangle, ButtonState, GridStyleInfo)

    MouseDown(MouseEventArgs, GridCellHitTestInfo)

    This is called from GridCellRendererBase when HitTest(Int32, Int32, MouseEventArgs, IMouseController) has indicated it wants to receive mouse events and the user has pressed the mouse button.

    Declaration
    public override void MouseDown(MouseEventArgs e, GridCellHitTestInfo ht)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    A System.Windows.Forms.MouseEventArgs with data about the mouse event.

    GridCellHitTestInfo ht

    The GridCellHitTestInfo with saved hit-test information about the mouse event.

    Overrides
    GridCellButton.MouseDown(MouseEventArgs, GridCellHitTestInfo)

    MouseMove(MouseEventArgs, GridCellHitTestInfo)

    This is called from GridCellRendererBase when HitTest(Int32, Int32, MouseEventArgs, IMouseController) has indicated it wants to receive mouse events and the user has pressed the mouse button and is moving the mouse.

    Declaration
    public override void MouseMove(MouseEventArgs e, GridCellHitTestInfo ht)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    A System.Windows.Forms.MouseEventArgs with data about the mouse event.

    GridCellHitTestInfo ht

    The GridCellHitTestInfo with saved hit-test information about the mouse event.

    Overrides
    GridCellButton.MouseMove(MouseEventArgs, GridCellHitTestInfo)

    MouseUp(MouseEventArgs, GridCellHitTestInfo)

    This is called from GridCellRendererBase when HitTest(Int32, Int32, MouseEventArgs, IMouseController) has indicated it wants to receive mouse events and the user has released the mouse button.

    Declaration
    public override void MouseUp(MouseEventArgs e, GridCellHitTestInfo ht)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    A System.Windows.Forms.MouseEventArgs with data about the mouse event.

    GridCellHitTestInfo ht

    The GridCellHitTestInfo with saved hit-test information about the mouse event.

    Overrides
    GridCellButton.MouseUp(MouseEventArgs, GridCellHitTestInfo)

    Implements

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