HorizontalRuleFormat

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

NameTypeAccessDescription
widthPercentdoubleRead/WriteGets or sets the length of the specified horizontal rule expressed as a percentage of the window width.
heightdoubleRead/WriteGets or sets the height of the horizontal rule.
noShadebooleanRead/WriteIndicates the presence of 3D shading for the horizontal rule.
colorColorRead/WriteGets or sets the brush color that fills the horizontal rule.
alignmentintRead/WriteGets or sets the alignment of the horizontal rule.

Methods

SignatureDescription
getWidthPercent() → doubleGets 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() → doubleGets or sets the height of the horizontal rule.
setHeight(value: double)Sets the height value.
getNoShade() → booleanIndicates the presence of 3D shading for the horizontal rule.
setNoShade(value: boolean)Sets the no shade value.
getColor() → ColorGets or sets the brush color that fills the horizontal rule.
setColor(value: Color)Sets the color value.
getAlignment() → intGets or sets the alignment of the horizontal rule.
setAlignment(value: int)Sets the alignment value.

See Also