Class SplitButton
- Namespace
- AetherUtils.Core.WinForms.Controls
- Assembly
- AetherUtils.Core.dll
Provides a button containing a split-arrow that can be assigned a context menu.
[UsedImplicitly]
public class SplitButton : Button, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IButtonControl
- Inheritance
-
SplitButton
- Implements
- Inherited Members
- Extension Methods
Constructors
SplitButton()
Create a new split button with a default SplitWidth of 20 pixels.
public SplitButton()
Properties
Menu
The ContextMenuStrip to assign to this split button.
[Browsable(true)]
public ContextMenuStrip? Menu { get; set; }
Property Value
SplitWidth
The width (in pixels) between the right-edge of the button and the splitter graphic.
[Browsable(true)]
[UsedImplicitly]
public int SplitWidth { get; set; }
Property Value
Methods
Dispose(bool)
Releases the unmanaged resources used by the ButtonBase and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposingbool- true to release both managed and unmanaged resources; false to release only unmanaged resources.
OnMouseDown(MouseEventArgs)
Raises the OnMouseDown(MouseEventArgs) event.
protected override void OnMouseDown(MouseEventArgs mevent)
Parameters
meventMouseEventArgs- A MouseEventArgs that contains the event data.
OnPaint(PaintEventArgs)
Raises the OnPaint(PaintEventArgs) event.
protected override void OnPaint(PaintEventArgs pevent)
Parameters
peventPaintEventArgs- A PaintEventArgs that contains the event data.