Skip to content

Table autofit default value #1159

Open
Open
@buhtz

Description

@buhtz

@property
def autofit(self):
"""
|True| if column widths can be automatically adjusted to improve the
fit of cell contents. |False| if table layout is fixed. Column widths
are adjusted in either case if total column width exceeds page width.
Read/write boolean.
"""
return self._tblPr.autofit
@autofit.setter
def autofit(self, value):
self._tblPr.autofit = value

I tried to understand the code to create a PR. But I couldn't figureing out how the default value of autofit is set.
The default value (True?) should be mentioned in the docstring.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions