java.lang.Object
com.aspose.words.VerticalAlignment
public class VerticalAlignment
- extends java.lang.Object
Utility class containing constants.
Specifies vertical alignment of a floating shape, text frame or a floating table.
Example:
Shows how to insert a floating image in the middle of a page.
// This creates a builder and also an empty document inside the builder.
DocumentBuilder builder = new DocumentBuilder();
// By default, the image is inline.
Shape shape = builder.insertImage(getMyDir() + "Aspose.Words.gif");
// Make the image float, put it behind text and center on the page.
shape.setWrapType(WrapType.NONE);
shape.setBehindText(true);
shape.setRelativeHorizontalPosition(RelativeHorizontalPosition.PAGE);
shape.setHorizontalAlignment(HorizontalAlignment.CENTER);
shape.setRelativeVerticalPosition(RelativeVerticalPosition.PAGE);
shape.setVerticalAlignment(VerticalAlignment.CENTER);
builder.getDocument().save(getMyDir() + "Image.CreateFloatingPageCenter Out.doc");
- See Also:
- ShapeBase.VerticalAlignment
Field Summary |
static final int | NONE | |
The object is explicitly positioned, usually using its Top property.
|
static final int | TOP | |
The object is aligned to the top of the reference object.
|
static final int | CENTER | |
The object is centered relative to the reference object.
|
static final int | BOTTOM | |
The object is aligned to the right of the reference object.
|
static final int | INSIDE | |
Not documented.
|
static final int | OUTSIDE | |
Not documented.
|
static final int | INLINE | |
Not documented. Seems to be a possible value for floating paragraphs and tables.
|
NONE | |
public static final int NONE |
-
The object is explicitly positioned, usually using its Top property.
TOP | |
public static final int TOP |
-
The object is aligned to the top of the reference object.
CENTER | |
public static final int CENTER |
-
The object is centered relative to the reference object.
BOTTOM | |
public static final int BOTTOM |
-
The object is aligned to the right of the reference object.
INSIDE | |
public static final int INSIDE |
-
Not documented.
OUTSIDE | |
public static final int OUTSIDE |
-
Not documented.
INLINE | |
public static final int INLINE |
-
Not documented. Seems to be a possible value for floating paragraphs and tables.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.