line_width property

BorderCollection.line_width property

Gets or sets the border width in points.

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

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

Remarks

Returns the width of the first border in the collection.

Sets the width of all borders in the collection excluding diagonal borders.

Examples

Shows how to create green wavy page border with a shadow.

doc = aw.Document()
page_setup = doc.sections[0].page_setup

page_setup.borders.line_style = aw.LineStyle.DOUBLE_WAVE
page_setup.borders.line_width = 2
page_setup.borders.color = drawing.Color.green
page_setup.borders.distance_from_text = 24
page_setup.borders.shadow = True

doc.save(ARTIFACTS_DIR + "PageSetup.page_borders.docx")

See Also