Specifies vertical alignment of a floating shape, text frame or a floating table.
Aspose.Words (in Aspose.Words.dll) Version: 20.2
public enum VerticalAlignment
Public Enumeration VerticalAlignment
public enum class VerticalAlignment
The object is explicitly positioned, usually using its Top property.
Specifies that the object shall be at the top of the vertical alignment base.
Specifies that the object shall be centered with respect to the vertical alignment base.
Specifies that the object shall be at the bottom of the vertical alignment base.
Specifies that the object shall be inside of the horizontal alignment base.
Specifies that the object shall be outside of the vertical alignment base.
Not documented. Seems to be a possible value for floating paragraphs and tables.
Same as None.
Shows how to insert a floating image in the middle of a page.
DocumentBuilder builder = new DocumentBuilder();
Shape shape = builder.InsertImage(ImageDir + "Aspose.Words.jpg");
shape.WrapType = WrapType.None;
shape.BehindText = true;
shape.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
shape.HorizontalAlignment = HorizontalAlignment.Center;
shape.RelativeVerticalPosition = RelativeVerticalPosition.Page;
shape.VerticalAlignment = VerticalAlignment.Center;
builder.Document.Save(ArtifactsDir + "Image.CreateFloatingPageCenter.doc");