BorderCollection

BorderCollection

Overview

BorderCollection is a class in Aspose.Words FOSS for .NET. Inherits from: IEnumerable<Border>.

A collection of Border objects.

This class provides 3 methods for working with BorderCollection objects in .NET programs. Available methods include: ClearFormatting, Equals, GetEnumerator. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Bottom, Color, Count, DistanceFromText, Horizontal, Left, and 6 more.

Properties

NameTypeAccessDescription
LeftBorderReadGets the left border.
RightBorderReadGets the right border.
TopBorderReadGets the top border.
BottomBorderReadGets the bottom border.
HorizontalBorderReadGets the horizontal border that is used between cells or conforming paragraphs.
VerticalBorderReadGets the vertical border that is used between cells.
CountintReadGets the number of borders in the collection.
LineWidthdoubleRead/WriteGets or sets the border width in points.
LineStyleLineStyleRead/WriteGets or sets the border style.
ColorSystem.Drawing.ColorRead/WriteGets or sets the border color.
DistanceFromTextdoubleRead/WriteGets or sets distance of the border from text in points.
ShadowboolRead/WriteGets or sets a value indicating whether the border has a shadow.

Methods

SignatureDescription
Equals(brColl: BorderCollection)Compares collections of borders.
ClearFormatting()Removes all borders of an object.
GetEnumerator()Returns an enumerator object that can be used to iterate over all borders in the collection.

See Also