XlsLabelShape module

class XlsLabelShape.XlsLabelShape

Bases: XlsShape, ILabelShape

Represents a label shape in an Excel worksheet.

This class provides properties and methods for manipulating label shapes in Excel, including text content and locking settings. It extends XlsShape and implements the ILabelShape interface.

property IsTextLocked: bool

Gets or sets whether the text in the label shape is locked.

Returns:

True if the text is locked; otherwise, False.

Return type:

bool

property ShapeType: ExcelShapeType

Gets the type of the shape.

Returns:

An enumeration value representing the type of the shape.

Return type:

ExcelShapeType

property Text: str

Gets or sets the text displayed in the label shape.

Returns:

The text displayed in the label shape.

Return type:

str