line_between property
TextColumnCollection.line_between property
When True
, adds a vertical line between columns.
@property
def line_between(self) -> bool:
...
@line_between.setter
def line_between(self, value: bool):
...
Examples
Shows how to separate columns with a vertical line.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
# Configure the current section's PageSetup object to divide the text into several columns.
# Set the "LineBetween" property to "true" to put a dividing line between columns.
# Set the "LineBetween" property to "false" to leave the space between columns blank.
columns = builder.page_setup.text_columns
columns.line_between = line_between
columns.set_count(3)
builder.writeln('Column 1.')
builder.insert_break(aw.BreakType.COLUMN_BREAK)
builder.writeln('Column 2.')
builder.insert_break(aw.BreakType.COLUMN_BREAK)
builder.writeln('Column 3.')
doc.save(file_name=ARTIFACTS_DIR + 'PageSetup.VerticalLineBetweenColumns.docx')
See Also
- module aspose.words
- class TextColumnCollection