Table of Contents

Class Borders

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

A Borders collection represents the eight border objects used for paragraphs, tables etc.

public class Borders : DocumentObject
Inheritance
object
Borders
Inherited Members
Extension Methods

Constructors

Borders()

Initializes a new instance of the Borders class.

Properties

BordersCleared

Gets the information if the collection is marked as cleared. Additionally, 'Borders = null' is written to the DDL stream when serialized.

Bottom

Gets or sets the bottom border.

Color

Gets or sets the color of the borders.

DiagonalDown

Gets or sets the diagonal down border.

DiagonalUp

Gets or sets the diagonal up border.

Distance

Sets the distance to all four borders to the specified value.

DistanceFromBottom

Gets or sets the distance between text and the bottom border.

DistanceFromLeft

Gets or sets the distance between text and the left border.

DistanceFromRight

Gets or sets the distance between text and the right border.

DistanceFromTop

Gets or sets the distance between text and the top border.

Left

Gets or sets the left border.

Right

Gets or sets the right border.

Style

Gets or sets the line style of the borders.

Top

Gets or sets the top border.

Values

Gets the underlying internal nullable values for the properties of this document object.

Visible

Gets or sets a value indicating whether the borders are visible.

Width

Gets or sets the standard width of the borders.

Methods

ClearAll()

Clears all Border objects from the collection. Additionally, 'Borders = null' is written to the DDL stream when serialized.

Clone()

Creates a deep copy of this object.

DeepCopy()

Implements the deep copy of the object.

GetBorder(BorderType)

Gets the border of the specified border type, or null if this border object does not yet exist.

HasBorder(BorderType)

Determines whether a particular border exists.