FGX.ComboBox.TfgCustomComboBox: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 33: Строка 33:
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">Clear()</syntaxhighlight>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">Clear()</syntaxhighlight>
 
Удаляет все элементы выпадающего списка.
 
Удаляет все элементы выпадающего списка.
 +
|}
 +
 +
== Свойства ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <code>property</code> || <code>ActiveItem: TfgCustomComboBoxItem</code>
 +
Активный/выбранный элмент ('' ItemIndex '' ).
 +
|-
 +
| <code>property</code> || <code>Items[Index]: TfgCustomComboBoxItem</code>
 +
Возвращает элемент по указанному индексу.
 +
|-
 +
| <code>property</code> || <code>ItemsCount: Integer</code>
 +
Количество элементов списка.
 +
|-
 +
| <code>property</code> || <code>Text: string</code>
 +
Возвращает текст текущего элемента, если элемент поддерживает текст (IFGXTextSupported).
 +
|-
 +
| <code>property</code> || <code>ItemIndex: Integer</code>
 +
Индекс выбранного элемента выпадающего списка.
 
|}
 
|}

Версия 03:15, 10 июня 2019

Delphi

TfgCustomComboBox = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)

Конструкторы

constructor Create(AOwner: TComponent)

Методы

procedure
AddItem(const AItem: TfgCustomComboBoxItem)

Добавляет произвольный элемент комбобокса.

function
AddTextItem(const AText: string)

Добавляет текстовый элемент комбобокса. Он отображает только текст.

function
DeleteItem(const AItem: TfgCustomComboBoxItem)

Удаляет элемент по указанному инстансу AItem .

function
DeleteItem(const AIndex: Integer)

Удаляет элемент по указанному индексу AIndex .

procedure
Clear()

Удаляет все элементы выпадающего списка.

Свойства

property ActiveItem: TfgCustomComboBoxItem

Активный/выбранный элмент ( ItemIndex ).

property Items[Index]: TfgCustomComboBoxItem

Возвращает элемент по указанному индексу.

property ItemsCount: Integer

Количество элементов списка.

property Text: string

Возвращает текст текущего элемента, если элемент поддерживает текст (IFGXTextSupported).

property ItemIndex: Integer

Индекс выбранного элемента выпадающего списка.