Skip to end of metadata
Go to start of metadata

Description

This class is used to specify border settings for various entities in a Word document.

C#
vb.net

Remarks

You cannot create a Border object using the new keyword. You must reference an existing Border by using either the Border property of the Font class or the GetBorder(Border.Location) method of one of the following classes: ParagraphFormatting, Section or TableCell.

The following sample gets the Border object for the bottom part of the upper left table cell of the first table in a document.

Examples

C#
vb.net

Properties

Name

Description

Color

Sets or returns a System.Drawing.Color object that represents the color of this border.

HasShadow

Sets or returns a boolean that represents whether or not the border has a shadow effect.

LineWidth

Sets or returns an int that represents the line width of this border in 1/8 points. (The maximum width is 32 points.)

Padding

Sets or returns an int that represents the space to maintain between the border and the text in twips. One twip = (1/20 pt) or (1/1440 in)

Reverse

Sets or returns a boolean which specifies whether or not the border graphic is reversed.

Style

Sets or returns a Border.LineStyle object that represents the line style of this border. (Single, thick, double, etc.)

Nested Classes

Name

Description

LineStyle

Used to specify a line style for borders.

Location

Used to specify the border location. Under certain circumstance it is necessary to specify the location of a border. Not all of these will apply for all circumstances.
  • No labels