[]
        
(Showing Draft Content)

C1.Framework.SplitButtonElement.DropDownList

SplitButtonElement.DropDownList Class

Implements dropdown form for SplitButtonElement

Namespace: C1.Framework
Assembly: C1.Win.8.dll
Syntax
public class SplitButtonElement.DropDownList : DropDownFormBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IContainerControl, IDropDownForm, IDisposable, IMessageFilter, ISupportUia, ISupportUiaContainer

Constructors

Name Description
DropDownList(SplitButtonElement)

Creates a new instance of SplitButtonElement.DropDownList

Properties

Name Description
Items

Gets SplitButtonElement.DropDownList child items.

SelectedIndex

Gets an index of the selected item or sets the SelectedItem by the given index.

SelectedItem

Gets or sets currently selected item.

Methods

Name Description
AddItems(IEnumerable<SplitButtonElementDropDownListItem>)

Fills dropdown with items.

AddItems(IEnumerable<string>)

Fills dropdown with items.

ApplyStyle(BaseStyle, int)

Applies the style to drop down form.

ClearItems()

Clears the Items list.

GetContentSize()

Returns the initial size for drop down form.

GetOwnerBounds()

Returns the bounds of the view in which the dropdown form belongs.

ItemsContains(string)

Determinew whether there is a child item with given value or not.

OnOwnerDropDownOpened()

Raises the DropDownOwner.DropDownOpened event.

OnRightToLeftChanged(EventArgs)
OnSelectedItemChanged()

Raises the SelectedItemChanged event.

OnVisibleChanged(EventArgs)
SetSelectedItem(string)

Sets item with defined value as SelectedItem.

UpdateLayout()

Updates dropdown size to fit all items.

Events

Name Description
SelectedItemChanged

Event raised when selected item changed.