java.lang.Object
com.aspose.words.HorizontalRuleAlignment
public class HorizontalRuleAlignment
- extends java.lang.Object
Utility class containing constants.
Represents the alignment for the specified horizontal rule.
Example:
Shows how to insert a horizontal rule shape, and customize its formatting.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.insertHorizontalRule();
HorizontalRuleFormat horizontalRuleFormat = shape.getHorizontalRuleFormat();
horizontalRuleFormat.setAlignment(HorizontalRuleAlignment.CENTER);
horizontalRuleFormat.setWidthPercent(70.0);
horizontalRuleFormat.setHeight(3.0);
horizontalRuleFormat.setColor(Color.BLUE);
horizontalRuleFormat.setNoShade(true);
Assert.assertTrue(shape.isHorizontalRule());
Assert.assertTrue(shape.getHorizontalRuleFormat().getNoShade());
|
Field Summary |
static final int | LEFT = 0 | |
|
Aligned to the left.
|
static final int | CENTER = 1 | |
|
Aligned to the center.
|
static final int | RIGHT = 2 | |
|
Aligned to the right.
|
LEFT = 0 | |
public static final int LEFT |
-
Aligned to the left.
CENTER = 1 | |
public static final int CENTER |
-
Aligned to the center.
RIGHT = 2 | |
public static final int RIGHT |
-
Aligned to the right.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.