line_style property

BorderCollection.line_style property

Gets or sets the border style.

@property
def line_style(self) -> aspose.words.LineStyle:
    ...

@line_style.setter
def line_style(self, value: aspose.words.LineStyle):
    ...

Remarks

Returns the style of the first border in the collection.

Sets the style 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 = aspose.pydrawing.Color.green
page_setup.borders.distance_from_text = 24
page_setup.borders.shadow = True
doc.save(file_name=ARTIFACTS_DIR + 'PageSetup.PageBorders.docx')

See Also