BorderCollectionColor Property

Gets or sets the border color.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public Color Color { get; set; }

Property Value

Type: Color
Remarks

Returns the color of the first border in the collection.

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

Examples
Creates a fancy looking green wavy page border with a shadow.
Document doc = new Document();
PageSetup ps = doc.Sections[0].PageSetup;

ps.Borders.LineStyle = LineStyle.DoubleWave;
ps.Borders.LineWidth = 2;
ps.Borders.Color = Color.Green;
ps.Borders.DistanceFromText = 24;
ps.Borders.Shadow = true;

doc.Save(ArtifactsDir + "PageSetup.PageBorders.doc");
See Also