Click or drag to resize

ListView.SetColumnFormat Method (Typed)

X#
Set the desired extended style for a list view.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD SetColumnFormat(
	nCol AS LONG,
	 dwFlag AS LONG,
	 nImage AS LONG
) AS USUAL
Request Example View Source

Parameters

nCol
Type: Long
The column index number.
dwFlag
Type: Long
Flags that can be set to create the required style. More than one style can be used by combining them with _Or() Available styles are - HDF_CENTER Allign the column to the center. HDF_LEFT Allign the column to the left. This is the default. HDF_RIGHT Allign the column to the right. HDF_BITMAP Add a bitmap to the left of the column. HDF_BITMAP_ON_RIGHT Add a bitmap to the right of the column. HDF_SORTDOWN down arrow in header - For visual themes only HDF_SORTUP up arrow in header - For visual themes only
nImage
Type: Long
the number of the image in the image list to display in the column header. The default is no image.

Return Value

Type: Usual
TRUE, if the style was enabled; otherwise, FALSE.
See Also