The type of break at the beginning of the section.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
SyntaxPublic Enumeration SectionStart
public enum class SectionStart
Members|
| Member name | Value | Description |
|---|
| Continuous | 0 |
The new section starts on the same page as the previous section.
|
| NewColumn | 1 |
The section starts from a new column.
|
| NewPage | 2 |
The section starts from a new page.
|
| EvenPage | 3 |
The section starts on a new even page.
|
| OddPage | 4 |
The section starts on a new odd page.
|
ExamplesSpecifies how the section starts, from a new page, on the same page or other.
Document doc = new Document();
doc.Sections[0].PageSetup.SectionStart = Aspose.Words.SectionStart.Continuous;
ExamplesCreates a simple document from scratch using the Aspose.Words object model.
Document doc = new Document();
doc.RemoveAllChildren();
Section section = new Section(doc);
doc.AppendChild(section);
section.PageSetup.SectionStart = SectionStart.NewPage;
section.PageSetup.PaperSize = PaperSize.Letter;
Body body = new Body(doc);
section.AppendChild(body);
Paragraph para = new Paragraph(doc);
body.AppendChild(para);
para.ParagraphFormat.StyleName = "Heading 1";
para.ParagraphFormat.Alignment = ParagraphAlignment.Center;
Run run = new Run(doc);
run.Text = "Hello World!";
run.Font.Color = Color.Red;
para.AppendChild(run);
Console.WriteLine("Hello World!\x000c");
doc.Save(ArtifactsDir + "Section.CreateFromScratch.doc");
See Also