LineStyle
BorderCollection.LineStyle property
Gets or sets the border style.
public LineStyle LineStyle { get; set; }
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.
Document doc = new Document();
PageSetup pageSetup = doc.Sections[0].PageSetup;
pageSetup.Borders.LineStyle = LineStyle.DoubleWave;
pageSetup.Borders.LineWidth = 2;
pageSetup.Borders.Color = Color.Green;
pageSetup.Borders.DistanceFromText = 24;
pageSetup.Borders.Shadow = true;
doc.Save(ArtifactsDir + "PageSetup.PageBorders.docx");
See Also
- enum LineStyle
- class BorderCollection
- namespace Aspose.Words
- assembly Aspose.Words