Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
    Overview
   [Expand]Getting Started
   [Collapse]Fundamentals
    [Expand]RichEditControl
    [Collapse]Document
      Document Model
      Document Layout
      Positions and Ranges
      Characters
      Paragraphs
      Inline Pictures
      Document Fields
      Hyperlinks and Bookmarks
      Headers and Footers
      Tables
      Range Permissions
      Sections
      Styles
      Numbered and Bulleted Lists
      Floating Objects (Shapes)
      Text Boxes
      Comments
      Document Properties
     Supported Document Formats
    [Expand]Fields
     Commands
     Services
     Layout API
     Product Class Structure
     Default Keyboard Shortcuts
     Measure Units
     HTML Tag Interpretation
   [Expand]Concepts
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Sections

The document is divided into logical Document.Sections. Each section in a SectionCollection defines its own page settings, such as SectionPage.PaperKind, 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.

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 content of a section can be arranged into several columns, accessible using the Section.Columns property. To create columns, use the SectionColumns.CreateUniformColumns method.

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

To insert a section at 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 at one inch and the lateral margins at .75 inches.
SetNarrowSectionPageMarginsCommand Sets all margins at half-an-inch.
SetNormalSectionPageMarginsCommand Sets all margins at one inch.
SetWideSectionPageMarginsCommand Sets vertical margins at one inch and side margins at two inches.
SetSectionOneColumnCommand Sets the section to have only one column.
SetSectionTwoColumnsCommand Sets the section to have two columns.
SetSectionThreeColumnsCommand Sets the section to have three columns.

How would you rate this topic?​​​​​​​