ListBox Class

Constructors & Destructor | Member Functions | Member Variables

Definition

Line 65 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 Result<bool> AddItem(const String<char>& item)
public void DeleteItem(int itemIndex)
public Result<String<char>> GetItem(int index)
public int GetItemCount() const
public int GetSelectedIndex() const
public int GetTopIndex() const
public Result<bool> InsertItem(int index, const String<char>& item)
protected override Result<bool> OnCreated()
protected virtual Result<bool> OnSelectedIndexChanged(SelectedIndexChangedEventArgs& args)
public Event<SelectedIndexChangedEventHandler, SelectedIndexChangedEventArgs>& SelectedIndexChangedEvent() const
internal Result<bool> SelectedIndexChangedInternal()
public Result<bool> SetItem(int index, const String<char>& item)
public void SetSelectedIndex(int selectedIndex)
public void SetTopIndex(int topIndex)

Member Variables

private Event<SelectedIndexChangedEventHandler, SelectedIndexChangedEventArgs> selectedIndexChangedEvent

Constructor& Destructor Details

ListBox Constructor

public ListBox(ListBoxCreateParams& createParams)

Definition
Line 78 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 67 of System.Windows/ListBox.cm


ListBox Constructor

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

Definition
Line 73 of System.Windows/ListBox.cm


Member Function Details

AddItem Member Function

public Result<bool> AddItem(const String<char>& item)

Definition
Line 82 of System.Windows/ListBox.cm


DeleteItem Member Function

public void DeleteItem(int itemIndex)

Definition
Line 96 of System.Windows/ListBox.cm


GetItem Member Function

public Result<String<char>> GetItem(int index)

Definition
Line 119 of System.Windows/ListBox.cm


GetItemCount Member Function

public int GetItemCount()

Definition
Line 146 of System.Windows/ListBox.cm


GetSelectedIndex Member Function

public int GetSelectedIndex()

Definition
Line 175 of System.Windows/ListBox.cm


GetTopIndex Member Function

public int GetTopIndex()

Definition
Line 157 of System.Windows/ListBox.cm


InsertItem Member Function

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

Definition
Line 104 of System.Windows/ListBox.cm


OnCreated Member Function

protected override Result<bool> OnCreated()

Definition
Line 193 of System.Windows/ListBox.cm


OnSelectedIndexChanged Member Function

protected virtual Result<bool> OnSelectedIndexChanged(SelectedIndexChangedEventArgs& args)

Definition
Line 230 of System.Windows/ListBox.cm


SelectedIndexChangedEvent Member Function

public Event<SelectedIndexChangedEventHandler, SelectedIndexChangedEventArgs>& SelectedIndexChangedEvent()

Definition
Line 239 of System.Windows/ListBox.cm


SelectedIndexChangedInternal Member Function

internal Result<bool> SelectedIndexChangedInternal()

Definition
Line 225 of System.Windows/ListBox.cm


SetItem Member Function

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

Definition
Line 136 of System.Windows/ListBox.cm


SetSelectedIndex Member Function

public void SetSelectedIndex(int selectedIndex)

Definition
Line 186 of System.Windows/ListBox.cm


SetTopIndex Member Function

public void SetTopIndex(int topIndex)

Definition
Line 168 of System.Windows/ListBox.cm