Class ToolStripSplitButtonEx
ToolStripSplitButton with text associated with DropDownButton instead of Image.
Inheritance
System.Object
ToolStripSplitButtonEx
Implements
System.Windows.Forms.IMessageFilter
Assembly: Syncfusion.Tools.Windows.dll
public class ToolStripSplitButtonEx : ToolStripDropDownItem, IMessageFilter
Constructors
Constructor of the ToolStripSplitButtonEx
Declaration
public ToolStripSplitButtonEx()
Properties
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 |
| System.Drawing.Point |
Gets or sets the font of the text displayed by the item.
Declaration
public override Font Font { get; set; }
Property Value
Methods
Declaration
protected override ToolStripDropDown CreateDefaultDropDown()
Returns
| Type |
| System.Windows.Forms.ToolStripDropDown |
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.
|
IsBackColorChange is trued when Back color changed to ToolStripSplitButtonEx.
Declaration
protected override void OnBackColorChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Prevent OnClick event if user press mouse not in ImageBounds.
Declaration
protected override void OnClick(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnDropDownClosed(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnDropDownOpened(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Get preferred Font for ToolStripSplitButtonEx.
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.LayoutEventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs mea)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
mea |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected override void OnParentRightToLeftChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
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
Implements
System.Windows.Forms.IMessageFilter