[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Collapse]RichEditControl Document
    [Expand]Document Structure
    [Collapse]Document Elements
      Positions and Ranges
      Inline Pictures
      Hyperlinks and Bookmarks
      Headers and Footers
      Range Permissions
      Floating Objects
      Text Boxes
      Document Properties
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    HTML Tag Support
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation


A document is divided into logical Document.Sections. Each section in a SectionCollection defines its own page settings, such as paper size (the SectionPage.PaperKind property), page orientation (the SectionPage.Landscape property), and its margins. The Section.Page and Section.Margins properties enable you to access these settings.

You can specify different settings for the first page of a section by using the Section.DifferentFirstPage property.

The headers and footers in the document belong to a particular section. To edit header or footer content, use the Section.BeginUpdateHeader - Section.EndUpdateHeader and the Section.BeginUpdateFooter - Section.EndUpdateFooter method pairs, respectively.

The Line numbering feature can be activated for a particular section using the Section.LineNumbering property.

To insert a section in an arbitrary position, use the Document.InsertSection method.

The following commands can be executed to modify section settings.

Command Description
SetModerateSectionPageMarginsCommand Sets the top and bottom margins to 1 inch, and sets the left and right margins to .75 inches.
SetNarrowSectionPageMarginsCommand Sets all margins to .5 inches.
SetNormalSectionPageMarginsCommand Sets all margins to 1 inch.
SetWideSectionPageMarginsCommand Sets the top and bottom margins to 1 inch, and sets the left and right margins to 2 inches.
SetSectionOneColumnCommand Sets the section so that it has only one column.
SetSectionTwoColumnsCommand Sets the section so that it has two columns.
SetSectionThreeColumnsCommand Sets the section so that it has three columns.

Expanded See Also

Is this topic helpful?​​​​​​​