PageSetupRtlGutter Property |
Namespace: Aspose.Words
Document doc = new Document(); // Insert text spanning several pages DocumentBuilder builder = new DocumentBuilder(doc); for (int i = 0; i < 6; i++) { builder.Write("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); builder.InsertBreak(BreakType.PageBreak); } // We can access the gutter margin in the section's page options, // which is a margin which is added to the page margin at one side of the page PageSetup pageSetup = doc.Sections[0].PageSetup; pageSetup.Gutter = 100.0; // If our text is LTR, the gutter will appear on the left side of the page // Setting this flag will move it to the right side pageSetup.RtlGutter = true; // Mirroring the margins will make the gutter alternate in position from page to page pageSetup.MultiplePages = MultiplePagesType.MirrorMargins; doc.Save(ArtifactsDir + "PageSetup.Gutter.docx");