XlsListBoxShape module

class XlsListBoxShape.XlsListBoxShape

Bases: XlsShape, IListBox

Represents a list box shape in an Excel worksheet.

This class provides properties and methods for manipulating list box shapes in Excel, including display settings, cell linking, selection types, and other list box-specific functionality. It extends XlsShape and implements the IListBox interface.

property Display3DShading: bool

Gets or sets whether 3D shading is displayed for the list box.

Returns:

True if 3D shading is displayed, False otherwise.

Return type:

bool

property LinkedCell: IXLSRange

Gets or sets the cell linked to the list box selection.

Returns:

The cell range linked to the list box selection.

Return type:

IXLSRange

property ListFillRange: IXLSRange

Gets or sets the range containing the list box items.

Returns:

The cell range containing the list box items.

Return type:

IXLSRange

property SelectedIndex: int

Gets or sets the index of the selected item in the list box.

Returns:

The zero-based index of the selected item.

Return type:

int

property SelectionType: SelectionType

Gets or sets the selection type of the list box.

Returns:

An enumeration value representing the selection type of the list box.

Return type:

SelectionType

property ShapeType: ExcelShapeType

Gets the shape type of the list box.

Returns:

An enumeration value representing the shape type of the list box.

Return type:

ExcelShapeType