Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[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
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [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
      Characters
      Paragraphs
      Inline Pictures
      Hyperlinks and Bookmarks
      Headers and Footers
      Tables
      Range Permissions
      Sections
      Styles
      Lists
      Floating Objects
      Text Boxes
      Comments
      Document Properties
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Services
    Events
    Commands
    HTML Tag Support
   [Expand]Examples
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Sections

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?​​​​​​​