Class BorderCollection
Represents a BorderCollection.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class BorderCollection : IEnumerable<Border>, IEnumerable
Properties
Bottom
Gets bottom.
Declaration
public Border Bottom { get; }
Property Value
| Type | Description |
|---|---|
| Border |
Count
Gets count.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Left
Gets the left border, or null when it is not set.
Declaration
public Border Left { get; }
Property Value
| Type | Description |
|---|---|
| Border |
Right
Gets the right border, or null when it is not set.
Declaration
public Border Right { get; }
Property Value
| Type | Description |
|---|---|
| Border |
Top
Gets the top border, or null when it is not set.
Declaration
public Border Top { get; }
Property Value
| Type | Description |
|---|---|
| Border |
Methods
ClearBorders()
Removes all borders and records that an inherited or built-in border set was explicitly cleared.
Declaration
public void ClearBorders()
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Border> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<Border> | The resulting value. |
SetBorder(BorderType, LineStyle, DrawingColor, double)
Sets one border side with the specified line formatting.
Declaration
public void SetBorder(BorderType borderType, LineStyle lineStyle, DrawingColor color, double lineWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| BorderType | borderType | The side to format. |
| LineStyle | lineStyle | The line style. |
| DrawingColor | color | The border color. |
| double | lineWidth | The line width in points. |