FGX.ComboBox.TfgCustomComboBox: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
Строка 38: | Строка 38: | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Clear()</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Clear()</code> | ||
Удаляет все элементы выпадающего списка. | Удаляет все элементы выпадающего списка. | ||
+ | |} | ||
+ | |||
+ | == Свойства == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>ActiveItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]]</code> | ||
+ | Активный/выбранный элмент ( '' ItemIndex '' ). | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Items[Index]: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]]</code> | ||
+ | Возвращает элемент по указанному индексу. | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>ItemsCount: [[Integer]]</code> | ||
+ | Количество элементов списка. | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Text: [[string]]</code> | ||
+ | Возвращает текст текущего элемента, если элемент поддерживает текст (IFGXTextSupported). | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>ItemIndex: [[Integer]]</code> | ||
+ | Индекс выбранного элемента выпадающего списка. | ||
|} | |} |
Версия 23:25, 11 июня 2019
Delphi
TfgCustomComboBox = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)
Известные прямые наследники: TfgComboBox
Содержание
Описание
Описание отсутствует.
Конструкторы
constructor
|
Create(AOwner: TComponent)
Описание отсутствует. |
Методы
procedure
|
AddItem(const AItem: TfgCustomComboBoxItem)
Добавляет произвольный элемент комбобокса. |
function
|
AddTextItem(const AText: string): TfgComboBoxTextItem
Добавляет текстовый элемент комбобокса. Он отображает только текст. |
function
|
DeleteItem(const AItem: TfgCustomComboBoxItem): Boolean
Удаляет элемент по указанному инстансу AItem . |
function
|
DeleteItem(const AIndex: Integer): Boolean
Удаляет элемент по указанному индексу AIndex . |
procedure
|
Clear()
Удаляет все элементы выпадающего списка. |
Свойства
property
|
ActiveItem: TfgCustomComboBoxItem
Активный/выбранный элмент ( ItemIndex ). |
property
|
Items[Index]: TfgCustomComboBoxItem
Возвращает элемент по указанному индексу. |
property
|
ItemsCount: Integer
Количество элементов списка. |
property
|
Text: string
Возвращает текст текущего элемента, если элемент поддерживает текст (IFGXTextSupported). |
property
|
ItemIndex: Integer
Индекс выбранного элемента выпадающего списка. |