add_list_box method

add_list_box(self, top_row, top, left_column, left, height, width)

Adds a ListBox to the worksheet.

Returns

A ListBox object.


def add_list_box(self, top_row, top, left_column, left, height, width):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
topintRepresents the vertical offset of ListBox from its left row, in unit of pixel.
left_columnintUpper left column index.
leftintRepresents the horizontal offset of ListBox from its left column, in unit of pixel.
heightintRepresents the height of ListBox, in unit of pixel.
widthintRepresents the width of ListBox, in unit of pixel.

Example


# add a list box
listBox = shapes.add_list_box(1, 0, 1, 0, 100, 50)

See Also