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
| Name | Type | Access | Description |
|---|---|---|---|
Left | Border | Read | Gets the left border. |
Right | Border | Read | Gets the right border. |
Top | Border | Read | Gets the top border. |
Bottom | Border | Read | Gets the bottom border. |
Horizontal | Border | Read | Gets the horizontal border that is used between cells or conforming paragraphs. |
Vertical | Border | Read | Gets the vertical border that is used between cells. |
Count | int | Read | Gets the number of borders in the collection. |
LineWidth | double | Read/Write | Gets or sets the border width in points. |
LineStyle | LineStyle | Read/Write | Gets or sets the border style. |
Color | System.Drawing.Color | Read/Write | Gets or sets the border color. |
DistanceFromText | double | Read/Write | Gets or sets distance of the border from text in points. |
Shadow | bool | Read/Write | Gets or sets a value indicating whether the border has a shadow. |
Methods
| Signature | Description |
|---|---|
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. |