Class SplitButton
Inheritance
System.Object
SplitButton
Implements
System.IDisposable
Assembly: Syncfusion.Tools.Windows.dll
public class SplitButton : BaseControl, IThemeProvider, IVisualStyle, IDisposable
Constructors
Declaration
Fields
Assign initial color to the ArrowButton Background
Declaration
public SolidBrush ArrowBColor
Field Value
Type |
System.Drawing.SolidBrush |
Button toogle mode indicator
Declaration
public bool ButtonToogleMode
Field Value
Color code for Button's DefaultColor State
Declaration
public string[] DefaultColor
Field Value
Color code for Button's Disabled State
Declaration
public string[] DisabledColor
Field Value
Color code for Button's Actived State
Declaration
public string[] OnoverColor
Field Value
Declaration
public string[] PressedColor
Field Value
Declaration
protected Color prev_backcolor
Field Value
Type |
System.Drawing.Color |
Declaration
public Color SplitterInnerColor
Field Value
Type |
System.Drawing.Color |
Properties
Gets or sets the Background color of the button control.
Declaration
public override Color BackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets Control size before touch enabled
Declaration
public Size BeforeTouchSize { get; set; }
Property Value
get or set the value for ButtonToogleMode
Declaration
public ButtonMode ButtonMode { get; set; }
Property Value
Declaration
protected override Size DefaultSize { get; }
Property Value
Declaration
public Color DropDownIconColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Declaration
public SplitButtonItemsCollection DropDownItems { get; }
Property Value
Declaration
public Position DropDownPosition { get; set; }
Property Value
Gets or sets the DropDown renderer of the SplitButton used to customize the appearance of the SplitButton DropDown
look and feel of Syncfusion.Windows.Forms.Tools.ContextMenuStripEx
Declaration
public ToolStripRenderer DropDownRenderer { get; set; }
Property Value
Type |
System.Windows.Forms.ToolStripRenderer |
Gets or sets value to enable or disable the Touchmode to the controls.
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Gets or sets the System.Drawing.Font value for the control.
Declaration
public override Font Font { get; set; }
Property Value
State of the Button Either Checked or UnChecked
Declaration
public bool IsButtonChecked { get; set; }
Property Value
Declaration
public ISplitButtonRenderer Renderer { get; set; }
Property Value
Declaration
public bool ShowDropDownOnButtonClick { get; set; }
Property Value
Gets / Sets the value of Style
Declaration
public SplitButtonVisualStyle Style { get; set; }
Property Value
Declaration
public SplitButtonAdvVisualStyle ThemeStyle { get; set; }
Property Value
Declaration
public bool UseMnemonic { get; set; }
Property Value
Methods
Scale the control based on the scale factor passed in the argument.
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
scaleFactor |
value to scale the factor based upon.
|
Declaration
protected static double ArgToRadians(long arg)
Parameters
Type |
Name |
Description |
System.Int64 |
arg |
|
Returns
Fire while ButtonDropDown get Focus
Declaration
public void buttonDropDown_MouseEnter(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
Fire while ButtonDropDown lost Focus
Declaration
public void buttonDropDown_MouseLeave(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Disposes control elements
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Helps to draw Drop Down Button Image for SplitButton control.
Declaration
public void DrawArrow(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
public void DrawBorder(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Helps to apply the ControlName settings in control
Declaration
public override string GetControlName(string controlName)
Parameters
Type |
Name |
Description |
System.String |
controlName |
ControlName
|
Returns
Overrides
Perform Button Back Color
Declaration
public void GetGradientcolors(PaintEventArgs e, int x, int y, int width, int height, int angle, string[] gcolors, Color backcolor)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Int32 |
angle |
|
System.String[] |
gcolors |
|
System.Drawing.Color |
backcolor |
|
Helps to apply the CanApplyTheme settings in control
Declaration
public override void OnCanApplyThemeChanged(bool canApplyTheme)
Parameters
Type |
Name |
Description |
System.Boolean |
canApplyTheme |
|
Overrides
Helps to apply the CanOverriderStyle settings in control
Declaration
public override void OnCanOverrideStyleChanged(bool canOverriderStyle)
Parameters
Type |
Name |
Description |
System.Boolean |
canOverriderStyle |
|
Overrides
Declaration
protected override void OnClick(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnEnabledChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides the KeyDown Event for providing AccessKey Support for SplitButton Control.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyEventArgs |
e |
KeyEventArgs
|
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseEventArgs mevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
mevent |
|
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs mevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
mevent |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides the Paint Event for drawing SplitButton Control
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
PaintEventArgs
|
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Helps to apply the ThemeName settings in control
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
Type |
Name |
Description |
System.String |
themeName |
ThemeName
|
Overrides
It performs Button painting as setting Border Color, BackGround Color, Arrow Color, using Button Renderer
Declaration
protected void PaintButton(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected void ResetButtonMode()
Declaration
public void ResetDropDownRenderer()
Border color and Background Color while the Button is in normal state
Declaration
protected void SetNormalStateColor()
Declaration
public void SetOwner(SplitButton value)
Parameters
Declaration
protected bool ShouldSerializeButtonMode()
Returns
Declaration
protected bool ShouldSerializeDropDownIconColor()
Returns
Indicates whether the current value of the DropDownRenderer property is to be serialized.
Declaration
protected bool ShouldSerializeDropDownRenderer()
Returns
Declaration
protected bool ShouldSerializeIsButtonChecked()
Returns
Declaration
protected bool ShouldSerializeRenderer()
Returns
Declaration
protected override void WndProc(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Events
Checked EventHandler for ToogleButton
Declaration
public event EventHandler Checked
Event Type
DropDownItemEventHandler , when the dropdown item is clicked.
Declaration
public event ToolStripItemClickedEventHandler DropDowItemClicked
Event Type
Type |
System.Windows.Forms.ToolStripItemClickedEventHandler |
UnChecked EventHandler for ToogleButton
Declaration
public event EventHandler UnChecked
Event Type
Implements
System.IDisposable