public class ColumnHeader
Encapsulates the settings on a column in a ListView control. These settings include the width of the column, the image associated with it, its width, and its index within the group of columns associated with a given ListView.
Methods
Name | Description |
---|---|
equals(Object obj) | Retrieves a boolean value that indicates whether the specified object is equivalent to this ColumnHeader object. |
getFormat() | Retreives the current format settings for this column header. |
getImageIndex() | Retrieves the zero-based index of the image associated with this column header. |
getIndex() | Retrieves the index of this column header. |
getListView() | Retrieves the ListView object associated with this column header. |
getSubItemIndex() | Retrieves the subitem index for this column header. |
getText() | Retrieves the text associated with this column header. |
getWidth() | Retrieves the width of this column header. |
hashCode() | Retrieves a hashcode for this object. |
setFormat(int format) | Sets the format for this ColumnHeader object. |
setImageIndex(int image) | Specifies the index of the image associated with this ColumnHeader object. |
setSubItemIndex(int index) | Specifies the ColumnHeader's subitem index. |
setText(String str) | Specifies the text for this ColumnHeader object. |
setWidth(int width) | Specifies the width for this ColumnHeader object. |
toString() | Retrieves a String object that contains the current settings on this ColumnHeader object. |
Returns true if obj is equivalent to this ColumnHeader object; otherwise, returns false.
Retrieves a boolean value that indicates whether the specified object is equivalent to this ColumnHeader object.
Returns a constant that identifies the format for this column header. Possible values include the following: comctl32.LVCFMT_LEFT comctl32.LVCFMT_RIGHT comctl32.LVCFMT_CENTER comctl32.LVCFMT_BITMAP_ON_RIGHT comctl32.LVCFMT_COL_HAS_IMAGES comctl32.LVCFMT_IMAGE
Retreives the current format settings for this column header.
Returns the index of the image if one has been set; otherwise, returns -1.
Retrieves the zero-based index of the image associated with this column header.
Returns the zero-based index of the column header.
Retrieves the index of this column header.
Returns the ListView object associated with this column header.
Retrieves the ListView object associated with this column header.
Returns the zero-based subitem index for this ColumnHeader.
Retrieves the subitem index for this column header.
Returns a String object that contains the text associated with this column header.
Retrieves the text associated with this column header.
Returns the width, in pixels, of this ColumnHeader object.
Retrieves the width of this column header.
Returns an integer that contains the hashcode.
Retrieves a hashcode for this object.
Sets the format for this ColumnHeader object.
IllegalArgumentException thrown if the format argument does not evaluate to one of the previously listed constant.
Specifies the index of the image associated with this ColumnHeader object. This index references the ImageList associated with the ColumnHeader's ListView.
Specifies the ColumnHeader's subitem index.
Specifies the text for this ColumnHeader object.
Specifies the width for this ColumnHeader object.
Returns a String object that contains the ColumnHeader settings.
Retrieves a String object that contains the current settings on this ColumnHeader object.