WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToolStripSplitButtonEx

    Show / Hide Table of Contents

    Class ToolStripSplitButtonEx

    ToolStripSplitButton with text associated with DropDownButton instead of Image.

    Inheritance
    System.Object
    ToolStripSplitButtonEx
    QuickSplitButtonEx
    Implements
    System.Windows.Forms.IMessageFilter
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class ToolStripSplitButtonEx : ToolStripDropDownItem, IMessageFilter

    Constructors

    ToolStripSplitButtonEx()

    Constructor of the ToolStripSplitButtonEx

    Declaration
    public ToolStripSplitButtonEx()

    Properties

    DropDownLocation

    If we have enough height to locate DropDown under the SplitButtonEx then set DropDown location as BottomLeft corner of SplitButtonEx. Otherwise DropDown will appear above the SplitButtonEx.

    Declaration
    protected override Point DropDownLocation { get; }
    Property Value
    Type Description
    System.Drawing.Point

    Font

    Gets or sets the font of the text displayed by the item.

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    Methods

    CreateDefaultDropDown()

    Declaration
    protected override ToolStripDropDown CreateDefaultDropDown()
    Returns
    Type Description
    System.Windows.Forms.ToolStripDropDown

    GetPreferredSize(Size)

    Retrieves the size of a rectangular area into which a control can be fit.

    Declaration
    public override Size GetPreferredSize(Size constrainingSize)
    Parameters
    Type Name Description
    System.Drawing.Size constrainingSize

    The custom-sized area for a control.

    Returns
    Type Description
    System.Drawing.Size

    A System.Drawing.Size ordered pair, representing the width and height of a rectangle.

    OnBackColorChanged(EventArgs)

    IsBackColorChange is trued when Back color changed to ToolStripSplitButtonEx.

    Declaration
    protected override void OnBackColorChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnClick(EventArgs)

    Prevent OnClick event if user press mouse not in ImageBounds.

    Declaration
    protected override void OnClick(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnDropDownClosed(EventArgs)

    Declaration
    protected override void OnDropDownClosed(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnDropDownOpened(EventArgs)

    Declaration
    protected override void OnDropDownOpened(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnFontChanged(EventArgs)

    Get preferred Font for ToolStripSplitButtonEx.

    Declaration
    protected override void OnFontChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnLayout(LayoutEventArgs)

    Declaration
    protected override void OnLayout(LayoutEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.LayoutEventArgs e

    OnMouseDown(MouseEventArgs)

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnMouseLeave(EventArgs)

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseMove(MouseEventArgs)

    Declaration
    protected override void OnMouseMove(MouseEventArgs mea)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs mea

    OnMouseUp(MouseEventArgs)

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnParentRightToLeftChanged(EventArgs)

    Declaration
    protected override void OnParentRightToLeftChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnRightToLeftChanged(EventArgs)

    Declaration
    protected override void OnRightToLeftChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    PreFilterMessage(ref Message)

    Uses to paint SplitButtonEx in normal state after MouseUp event if cursor not in bounds of SplitButtonEx.

    Declaration
    public bool PreFilterMessage(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m

    Message to process.

    Returns
    Type Description
    System.Boolean

    Implements

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