The IWP_HorizontalLine interface contains public methods that set and
manipulate the attributes associated with a horizontal line within a word
processing document. IWP_HorizontalLine contains the following methods:
Return | Function Call | Description |
String | getAlign() | retreives the alignment attribute for a horizontal line |
void | setAlign(String align) | sets the alignment attribute for a horizontal line.
Align can be set to
left, right, or center |
Int | getSize() | retrieves the height of the horizontal line in pixels |
void | setSize(Int size) | sets the height of the horizontal line in pixels |
Int | getWidth() | returns the width attribute |
void | setWidth(Int width) | sets the line width, either in pixels (if the width is positive) or as a percentage of the margin width (if the width is negative) |
Color | getColor | retreives the color attribute of the line |
void | setColor(Color color) | sets the color attribute of the line |
Return | Function Call | Description |
String | getName() | retreives the name of an object |
Boolean | setName(String name) | sets the name of an object |