ListBox Class

Definition

Line 57 of System.Windows/ListBox.cm

Inheritance

Constructors & Destructor

public ListBox(ListBoxCreateParams& createParams)
public ListBox(ListBoxStyle listBoxStyle, const Color& backgroundColor, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors)
public ListBox(const Point& location, const Size& size, Dock dock, Anchors anchors)

Member Functions

public void AddItem(const String<char>& item)
public void DeleteItem(int itemIndex)
public String<char> GetItem(int index)
public int GetItemCount() const
public int GetSelectedIndex() const
public int GetTopIndex() const
public void InsertItem(int index, const String<char>& item)
protected override void OnCreated()
protected virtual void OnSelectedIndexChanged()
public nothrow Event<SelectedIndexChangedEventHandler, EmptyEventArgs>& SelectedIndexChangedEvent() const
internal void SelectedIndexChangedInternal()
public void SetItem(int index, const String<char>& item)
public void SetSelectedIndex(int selectedIndex)
public void SetTopIndex(int topIndex)

Member Variables

private Event<SelectedIndexChangedEventHandler, EmptyEventArgs> selectedIndexChangedEvent

Constructor& Destructor Details

ListBox Constructor

public ListBox(ListBoxCreateParams& createParams)

Definition
Line 70 of System.Windows/ListBox.cm


ListBox Constructor

public ListBox(ListBoxStyle listBoxStyle, const Color& backgroundColor, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 59 of System.Windows/ListBox.cm


ListBox Constructor

public ListBox(const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 65 of System.Windows/ListBox.cm


Member Function Details

AddItem Member Function

public void AddItem(const String<char>& item)

Definition
Line 73 of System.Windows/ListBox.cm


DeleteItem Member Function

public void DeleteItem(int itemIndex)

Definition
Line 81 of System.Windows/ListBox.cm


GetItem Member Function

public String<char> GetItem(int index)

Definition
Line 96 of System.Windows/ListBox.cm


GetItemCount Member Function

public int GetItemCount()

Definition
Line 112 of System.Windows/ListBox.cm


GetSelectedIndex Member Function

public int GetSelectedIndex()

Definition
Line 141 of System.Windows/ListBox.cm


GetTopIndex Member Function

public int GetTopIndex()

Definition
Line 123 of System.Windows/ListBox.cm


InsertItem Member Function

public void InsertItem(int index, const String<char>& item)

Definition
Line 88 of System.Windows/ListBox.cm


OnCreated Member Function

protected override void OnCreated()

Definition
Line 159 of System.Windows/ListBox.cm


OnSelectedIndexChanged Member Function

protected virtual void OnSelectedIndexChanged()

Definition
Line 173 of System.Windows/ListBox.cm


SelectedIndexChangedEvent Member Function

public nothrow Event<SelectedIndexChangedEventHandler, EmptyEventArgs>& SelectedIndexChangedEvent()

Definition
Line 177 of System.Windows/ListBox.cm


SelectedIndexChangedInternal Member Function

internal void SelectedIndexChangedInternal()

Definition
Line 169 of System.Windows/ListBox.cm


SetItem Member Function

public void SetItem(int index, const String<char>& item)

Definition
Line 107 of System.Windows/ListBox.cm


SetSelectedIndex Member Function

public void SetSelectedIndex(int selectedIndex)

Definition
Line 152 of System.Windows/ListBox.cm


SetTopIndex Member Function

public void SetTopIndex(int topIndex)

Definition
Line 134 of System.Windows/ListBox.cm