Overview | Methods | This Package | All Packages
Adds a column to the list view control and returns the column header that appears at the top of the column.
Syntax
public ColumnHeader addColumn( String str, int width, int textAlign )
Parameters
str
The text that appears in the header for the new column.
width
The width, in pixels, of the new column.
textAlign
The text alignment setting for the new column. Possible return values are constants defined in the HorizontalAlignment class.
Return Value
Returns a ColumnHeader object representing the header for the new column.
Remarks
The new column is inserted to the right of existing columns. To insert a column into the list view control at a specific position, use the insertColumn method. Columns are visible only in Report view.
See Also removeColumn