BorderCollection Class |
Namespace: Aspose.Words
The BorderCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Bottom |
Gets the bottom border.
|
![]() ![]() | Color |
Gets or sets the border color.
|
![]() ![]() | Count |
Gets the number of borders in the collection.
|
![]() ![]() | DistanceFromText |
Gets or sets distance of the border from text in points.
|
![]() ![]() | Horizontal |
Gets the horizontal border that is used between cells or conforming paragraphs.
|
![]() ![]() | ItemInt32 |
Retrieves a Border object by index.
|
![]() ![]() | ItemBorderType |
Retrieves a Border object by border type.
|
![]() ![]() | Left |
Gets the left border.
|
![]() ![]() | LineStyle |
Gets or sets the border style.
|
![]() ![]() | LineWidth |
Gets or sets the border width in points.
|
![]() ![]() | Right |
Gets the right border.
|
![]() ![]() | Shadow |
Gets or sets a value indicating whether the border has a shadow.
|
![]() ![]() | Top |
Gets the top border.
|
![]() ![]() | Vertical |
Gets the vertical border that is used between cells.
|
Name | Description | |
---|---|---|
![]() ![]() | ClearFormatting |
Removes all borders of an object.
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() ![]() | Equals(BorderCollection) |
Compares collections of borders.
|
![]() ![]() | GetEnumerator |
Returns an enumerator object that can be used to iterate over all borders in the collection.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
DocumentBuilder builder = new DocumentBuilder(); Border topBorder = builder.ParagraphFormat.Borders[BorderType.Top]; topBorder.Color = Color.Red; topBorder.LineStyle = LineStyle.DashSmallGap; topBorder.LineWidth = 4; builder.Writeln("Hello World!");