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 |
---|---|
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.) |