Border.LineWidth Property
Word Developer Reference |
Returns or sets the line width of an object's border. Read/write.
Syntax
expression.LineWidth
expression Required. A variable that represents a Border object.
Remarks
Returns a WdLineWidth constant or wdUndefined if the object either has no borders or has borders with more than one line width. If the specified line width isn't available for the border's line style, this property generates an error. To determine the line widths available for a particular line style, see the Borders and Shading dialog box (Format menu).
Example
This example adds a border below the first row in the first table of the active document.
Visual Basic for Applications |
---|
|
This example adds a wavy, red line to the left of the selection.
Visual Basic for Applications |
---|
|
See Also