Drawing Suite
362
Class: horizontal line format
Plural
horizontal line formats
Represents horizontal line formatting.
To return a horizontal line format object, use the horizontal line format property of either the inline
horizontal line or standard inline horizontal line object. This example sets the alignment for a new
horizontal line.
make new standard inline horizontal line at the end of the active document
set alignment of horizontal line format of ¬
standard inline horizontal line 1 of active document ¬
to horizontal line align left
This example adds a horizontal line without any 3-D shading.
make new standard inline horizontal line at the end of the active document
set no shade of horizontal line format of standard inline horizontal line 1 ¬
of active document to true
This example adds a horizontal line and sets its length to 50% of the window width.
make new standard inline horizontal line at the end of the active document
set percent width of horizontal line format of ¬
standard inline horizontal line 1 of active document to 50
Properties
alignment
Returns or sets the alignment for the specified horizontal line. Read/write.
Can be one of the following:
·
horizontal line align left
·
horizontal line align center
·
horizontal line align right
no shade
True if Word draws the specified horizontal line without 3-D shading. Read/write.
You can use this property only with horizontal lines that are not based on an existing image
file.
percent width
Returns or sets the length of the specified horizontal line expressed as a percentage of the
window width. Read/write.
Setting this property also sets the width type property to horizontal line percent width.