FGX.ComboBox.TfgCustomComboBox: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
Строка 21: | Строка 21: | ||
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(AOwner: [[TComponent]])</code> | | <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(AOwner: [[TComponent]])</code> | ||
<span style="color:gray">Описание отсутствует.</span> | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |} | ||
+ | |||
+ | == Методы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">AddItem(const AItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]])</code> | ||
+ | <p>Добавляет произвольный элемент комбобокса.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddTextItem(const AText: [[string]]): [[FGX.ComboBox.TfgComboBoxTextItem|TfgComboBoxTextItem]]</code> | ||
+ | <p>Добавляет текстовый элемент комбобокса. Он отображает только текст.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">DeleteItem(const AItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]]): [[Boolean]]</code> | ||
+ | |||
+ | <p>Удаляет элемент по указанному инстансу <i>AItem</i> .</p><div class="info">Не допускается указывать nil. Если элемент был найден среди элементов контрола и удален, то вернет True, в противном случае - False.</div> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">DeleteItem(const AIndex: [[Integer]]): [[Boolean]]</code> | ||
+ | |||
+ | <p>Удаляет элемент по указанному индексу <i>AIndex</i> .</p><div class="info">Не допускается указывать индекс не существующего элемента страницы.</div> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Clear()</code> | ||
+ | <p>Удаляет все элементы выпадающего списка.</p> | ||
|} | |} |
Версия 02:38, 13 июня 2019
Delphi
TfgCustomComboBox = class (TfgControl, IFGXContainer)
TComponent -> TfgControl -> TfgCustomComboBox
Прямые наследники: TfgComboBox
Описание
Описание отсутствует.
Конструкторы
constructor
|
Create(AOwner: TComponent)
Описание отсутствует. |
Методы
procedure
|
AddItem(const AItem: TfgCustomComboBoxItem)
Добавляет произвольный элемент комбобокса. |
function
|
AddTextItem(const AText: string): TfgComboBoxTextItem
Добавляет текстовый элемент комбобокса. Он отображает только текст. |
function
|
DeleteItem(const AItem: TfgCustomComboBoxItem): Boolean
Удаляет элемент по указанному инстансу AItem . Не допускается указывать nil. Если элемент был найден среди элементов контрола и удален, то вернет True, в противном случае - False.
|
function
|
DeleteItem(const AIndex: Integer): Boolean
Удаляет элемент по указанному индексу AIndex . Не допускается указывать индекс не существующего элемента страницы.
|
procedure
|
Clear()
Удаляет все элементы выпадающего списка. |