あ
class ListBoxException: etc.negui.control.control.ControlException;
abstract interface IListBox;
abstract int add(in Text text
);
abstract int add(in Text[] texts
);
文字列の追加。
- Params:
- Text text
- 追加する文字列。
- Returns:
- 追加された文字列のインデックス。
abstract int del(int Index
);
項目の削除。
- Params:
- int Index
- 削除項目のインデックス。
abstract const int find(in Text text
, int StartIndex
);
項目の検索。
- Params:
- Text text
- 検索文字列。
- int StartIndex
- 検索を開始するインデックス。
- Returns:
- 該当するインデックス。
該当しなければ-1。
abstract const int select();
abstract const int getHeight(int Index
);
高さの取得。
- Params:
- int Index
- 取得するインデックス。
- Throws:
- 失敗時にNeGuiException。
abstract const Text listText(int Index
);
指定項目の文字列取得。
- Params:
- int Index
- 項目のインデックス。
- Throws:
- 失敗時にNeGuiException。
abstract const int listTextLength(int);
abstract const int topIndex();
表示中の最上位項目取得。
- Returns:
- 現在表示されている最上位項目のインデックス。
class ListBox: etc.negui.control.control.Control, etc.negui.control.listbox.listbox.IListBox, etc.negui.control.control.INotify, etc.negui.control.control.IOwnerDraw;
一人だけ異質だ。
enum EVENT;
this(HWND hWnd
);
enum SELECT;
this(NeGui Owner
, ITEM_ID Id
, SELECT Select
= (SELECT).SINGLE, TYPE Type
= (TYPE).LIST);
this(NEGUIINFO NeGuiInfo
, SELECT Select
, TYPE Type
);
void column(int Column
);
int add(in Text text
);
int add(in Text[] texts
);
int del(int Index
);
const int find(in Text text
, int StartIndex
);
const int count();
const int select();
int select(int Index
);
const int getHeight(int Index
);
bool setHeight(int Index
, int Height
);
void setWidth(int Width
);
const Text listText(int Index
);
bool listText(in Text text
, int Index
);
const int listTextLength(int Index
);
const int topIndex();
int insert(in Text text
, int Index
);
void clear();
int search(in Text text
, int StartIndex
);
const bool isSelect();
bool isSelect(int Index
);
bool toSelect(int Index
, bool Select
);
int selectedCount();
int caretIndex();
void* getItemData(int Index
);
void setItemData(int Index
, void* Data
);
int folder(in Text Folder
, LIST_ATTIBUTE ListAttributes
);
class ListBoxGroup: etc.negui.control.group.Group!(ListBox).Group;