spacing property

TextColumnCollection.spacing property

When columns are evenly spaced, gets or sets the amount of space between each column in points.

@property
def spacing(self) -> float:
    ...

@spacing.setter
def spacing(self, value: float):
    ...

Remarks

Has effect only when TextColumnCollection.evenly_spaced is set to True.

Examples

Shows how to create multiple evenly spaced columns in a section.

doc = aw.Document()
builder = aw.DocumentBuilder(doc)
columns = builder.page_setup.text_columns
columns.spacing = 100
columns.set_count(2)
builder.writeln('Column 1.')
builder.insert_break(aw.BreakType.COLUMN_BREAK)
builder.writeln('Column 2.')
doc.save(file_name=ARTIFACTS_DIR + 'PageSetup.ColumnsSameWidth.docx')

See Also