PageVerticalAlignment Enumeration |
Specifies vertical justification of text on each page.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum PageVerticalAlignment
Public Enumeration PageVerticalAlignment
public enum class PageVerticalAlignment
type PageVerticalAlignment
Members
| Member name | Value | Description |
---|
| Bottom | 3 |
Text is aligned at the bottom of the page.
|
| Center | 1 |
Text is aligned in the middle of the page.
|
| Justify | 2 |
Text is spread to fill the page.
|
| Top | 0 |
Text is aligned at the top of the page.
|
Remarks
ExamplesShows how to insert sections using DocumentBuilder, specify page setup for a section and reset page setup to defaults.
DocumentBuilder builder = new DocumentBuilder();
builder.PageSetup.Orientation = Orientation.Landscape;
builder.PageSetup.VerticalAlignment = PageVerticalAlignment.Center;
builder.Writeln("Section 1, landscape oriented and text vertically centered.");
builder.InsertBreak(BreakType.SectionBreakNewPage);
builder.PageSetup.ClearFormatting();
builder.Writeln("Section 2, back to default Letter paper size, portrait orientation and top alignment.");
builder.Document.Save(ArtifactsDir + "PageSetup.ClearFormatting.doc");
See Also