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 using the Border
property method of one of the following classes: Font, CharacterRun, Paragraph, ParagraphFormatting, Section, or TableCell.
The following sample gets the Border
object of the upper left table cell of the first table in a document.
Examples
C#
vb.net
Properties
Name |
Description |
---|---|
Sets or returns a System.Drawing.Color object that represents the color of this border. | |
Sets or returns a boolean that represents whether or not the border has a shadow effect. |
|
Sets or returns an int that represents the line width of this border in 1/8 points. (The maximum width is 32 points.) |
|
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) |
|
Sets or returns a boolean which specifies whether or not the border graphic is reversed. | |
Sets or returns a Border.LineStyle object that represents the line style of this border. (Single, thick, double, etc.) |