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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 15: Строка 15:
 
| <code>constructor</code> || <code>Create(AOwner: [[TComponent]])</code>
 
| <code>constructor</code> || <code>Create(AOwner: [[TComponent]])</code>
  
 +
|}
 +
 +
== Методы ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <code lang="Delphi">procedure</code> || <code lang="Delphi">AddItem(const AItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]])</code>
 +
Добавляет произвольный элемент комбобокса.
 +
|-
 +
| <code lang="Delphi">function</code> || <code lang="Delphi">AddTextItem(const AText: [[string]])</code>
 +
Добавляет текстовый элемент комбобокса. Он отображает только текст.
 +
|-
 +
| <code lang="Delphi">function</code> || <code lang="Delphi">DeleteItem(const AItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]])</code>
 +
Удаляет элемент по указанному инстансу '' AItem '' .
 +
|-
 +
| <code lang="Delphi">function</code> || <code lang="Delphi">DeleteItem(const AIndex: [[Integer]])</code>
 +
Удаляет элемент по указанному индексу '' AIndex '' .
 +
|-
 +
| <code lang="Delphi">procedure</code> || <code lang="Delphi">Clear()</code>
 +
Удаляет все элементы выпадающего списка.
 
|}
 
|}

Версия 04:10, 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()

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