Click or drag to resize

ListViewItem.SetText Method

X#
Set the text label of a column.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD SetText(
	cNewText,
	symColumnName,
	nImageIndex
) AS USUAL CLIPPER
Request Example View Source

Parameters

cNewText (Optional)
Type: Usual
The text to be added to the column.
symColumnName (Optional)
Type: Usual
The symbolic name of the column whose text you want to set.
nImageIndex (Optional)
Type: Usual
A numeric value that represents the index of the list view’s column image in the image list.

Return Value

Type: Usual
Remarks
Tip Tip
SubItemImages only work if the ListView control has the style LVS_EX_SUBITEMIMAGES. You can set this style with ListView:SetExLVStyle(LVS_EX_SUBITEMIMAGES).
Examples
See the ListView:AddItem() method for sample syntax.
See Also