HorizontalRuleFormat
Overview
HorizontalRuleFormat is a class in Aspose.Words FOSS for Java.
Represents horizontal rule formatting.
Edition status of its 15 listed members (a property and its accessor methods are listed separately, overloads once): 15 not yet exercised by a verified example.
This class declares 10 methods for HorizontalRuleFormat objects in Java programs.
Available methods include: getAlignment, getColor, getHeight, getNoShade, getWidthPercent, setAlignment, setColor, setHeight, setNoShade, setWidthPercent.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: alignment, color, height, noShade, widthPercent.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
widthPercent | double | Read/Write | Gets or sets the length of the specified horizontal rule expressed as a percentage of the window width. |
height | double | Read/Write | Gets or sets the height of the horizontal rule. |
noShade | boolean | Read/Write | Indicates the presence of 3D shading for the horizontal rule. |
color | Color | Read/Write | Gets or sets the brush color that fills the horizontal rule. |
alignment | int | Read/Write | Gets or sets the alignment of the horizontal rule. |
Methods
| Signature | Description |
|---|---|
getWidthPercent() → double | Gets or sets the length of the specified horizontal rule expressed as a percentage of the window width. |
setWidthPercent(value: double) | Sets the width percent value. |
getHeight() → double | Gets or sets the height of the horizontal rule. |
setHeight(value: double) | Sets the height value. |
getNoShade() → boolean | Indicates the presence of 3D shading for the horizontal rule. |
setNoShade(value: boolean) | Sets the no shade value. |
getColor() → Color | Gets or sets the brush color that fills the horizontal rule. |
setColor(value: Color) | Sets the color value. |
getAlignment() → int | Gets or sets the alignment of the horizontal rule. |
setAlignment(value: int) | Sets the alignment value. |