Inheritance diagram for wx.ListItem:
This class stores information about a wx.ListCtrl item or column.
Returns the alignment for this item. Can be one of wx.LIST_FORMAT_LEFT, wx.LIST_FORMAT_RIGHT or wx.LIST_FORMAT_CENTRE.
Returns:
int
Returns the zero-based column; meaningful only in report mode.
Returns:
int
Returns client data associated with the control. Please note that client data is associated with the item and not with subitems.
Returns:
long
Returns the zero-based item position.
Returns:
long
Returns the zero-based index of the image associated with the item into the image list.
Returns:
int
Returns a bit mask indicating which fields of the structure are valid; can be any combination of the following values:
Mask Flag | Description |
---|---|
wx.LIST_MASK_STATE | GetState is valid. |
wx.LIST_MASK_TEXT | GetText is valid. |
wx.LIST_MASK_IMAGE | GetImage is valid. |
wx.LIST_MASK_DATA | GetData is valid. |
wx.LIST_MASK_WIDTH | GetWidth is valid. |
wx.LIST_MASK_FORMAT | GetFormat is valid. |
Returns:
long
Returns a bit field representing the state of the item. Can be any combination of:
State Flag | Description |
---|---|
wx.LIST_STATE_DONTCARE | Don’t care what the state is. Win32 only. |
wx.LIST_STATE_DROPHILITED | The item is highlighted to receive a drop event. Win32 only. |
wx.LIST_STATE_FOCUSED | The item has the focus. |
wx.LIST_STATE_SELECTED | The item is selected. |
wx.LIST_STATE_CUT | The item is in the cut state. Win32 only. |
Returns:
long
Returns the label/header text.
Returns:
string
Meaningful only for column headers in report mode. Returns the column width.
Returns:
int
Sets the alignment for the item.
Parameters:
See also
Sets the background colour for the item.
Parameters:
Sets the zero-based column. Meaningful only in report mode.
Parameters:
Sets client data for the item. Please note that client data is associated with the item and not with subitems.
Parameters:
Sets the zero-based item position.
Parameters:
Sets the zero-based index of the image associated with the item into the image list.
Parameters:
Sets the mask of valid fields.
Parameters:
See also
Sets the item state flags (note that the valid state flags are influenced by the value of the state mask.
See GetState for valid flag values.
Parameters:
See also
Sets the bitmask that is used to determine which of the state flags are to be set.
Parameters:
See also
Sets the text label for the item.
Parameters:
Meaningful only for column headers in report mode. Sets the column width.
Parameters: