PageSetupRtlGutter Property

Gets or sets whether Microsoft Word uses gutters for the section based on a right-to-left language or a left-to-right language.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.10.0


public bool RtlGutter { get; set; }

Property Value

Type: Boolean


Shows how to set gutter margins.
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.");

// 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.0d;

// 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");

ExpandedSee Also