ComboBoxEx.AddItem Method (Usual, Usual, Usual, Usual, Usual, Usual, Usual) | |
Add a new item to the ComboBoxEx object.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD AddItem(
cItem,
nItemNumber,
uRetValue,
iImageIdx,
iSelectedIdx,
iOverlayIdx,
iIndent
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual AddItem(
Usual cItem = default,
Usual nItemNumber = default,
Usual uRetValue = default,
Usual iImageIdx = default,
Usual iSelectedIdx = default,
Usual iOverlayIdx = default,
Usual iIndent = default
)
Request Example
View SourceParameters
- cItem (Optional)
- Type: Usual
The item text as string. - nItemNumber (Optional)
- Type: Usual
The position where to insert the new item. The default placement is at the end of the list (-1). Note that the index into the combo box is zero-based. - uRetValue (Optional)
- Type: Usual
The value associated with the specified item. The default is cItem.
- iImageIdx (Optional)
- Type: Usual
The index of the image associated with this item. - iSelectedIdx (Optional)
- Type: Usual
The image index to display when the item is selected. - iOverlayIdx (Optional)
- Type: Usual
The image index of on overlay image in the image list. - iIndent (Optional)
- Type: Usual
The indentation level of the item.
Return Value
Type:
Usual
The position of the newly inserted item.
Remarks
This method inserts a new item into the ComboBoxEx control. In addition to the parameters known from the parent classes, ComboBoxEx also expects indexes into the associated image list that specify the image(s) to be displayed together with the item text.
See Also