[]
        
(Showing Draft Content)

C1.Framework.SplitButtonElement

SplitButtonElement Class

Represents a simple splitbutton element

Inheritance
SplitButtonElement
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public class SplitButtonElement : ButtonElement, ISupportUia, IToolTipElement, IUiaButton, IUiaInvokeProvider, IDropDownOwner

Constructors

Name Description
SplitButtonElement()

Creates an instance of SplitButtonElement

Properties

Name Description
DropDown

Gets or sets the DropDown form relates to this SplitButtonElement. When set a new value, it shouldn't be null and it's DropDownOwner should be current SplitButtonElement.

Icon

IconElement that holds an C1Icon displayed on the button.

IsDroppedDown

Gets or sets a value determines whether the dropdown is open.

Items

The set of dropdown items.

SelectedIndex

Gets or sets the index of the selected element.

Methods

Name Description
AddItems(IEnumerable<SplitButtonElementDropDownListItem>)

Fills dropdown with items.

AddItems(IEnumerable<string>)

Fills dropdown with items.

OnMouseUp(MouseEventArgs)

Called by the host control when the user releases a mouse button over this Element.

OnRightToLeftChanged()
OnSelectedIndexChanged()

Raises the SelectedIndexChanged event.

OnSelectedItemChanged()

Raises the SelectedItemChanged event.

SetIcon(C1Icon)

Sets icon to be displayed on the button.

Events

Name Description
SelectedIndexChanged

Event raised when selected index changed.

SelectedItemChanged

Event raised when selected item changed.