Click or drag to resize

ListViewItem.SetText Method (Typed)

X#
Set the text label of a column.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD SetText(
	cNewText AS STRING,
	symColumnName AS SYMBOL,
	 nImageIndex AS LONG
) AS VOID
Request Example View Source

Parameters

cNewText
Type: String
The text to be added to the column.
symColumnName
Type: Symbol
The symbolic name of the column whose text you want to set.
nImageIndex
Type: Long
A numeric value that represents the index of the list view’s column image in the image list.
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