Skip to main content

Columns Dialog

When working in the RichEditControl, end-users can lay out text in columns. The Columns dialog enables end-users to set the number of columns to be created in a particular section or the whole document, and to specify the width of individual columns and between columns.

DXRichEdit_Columns_Dialog

You can provide end-users with the capability to invoke the Columns dialog via the Page Setup toolbar or Ribbon page group. To do this, provide Bars or Ribbon UI for the RichEditControl (see Lesson 2 - Create a Simple Word Processor with Bar Menu or Lesson 3 - Create a Simple Word Processor with Ribbon Menu) and create the Page Setup toolbar or Ribbon page group from the Page Layout group of bars.

To invoke the dialog, use the ShowColumnsSetupFormCommand command.

To programmatically operate with columns in the section, use the SectionColumns interface accessed via the Section.Columns property. Each individual column in the section layout is represented by the SectionColumn object.

NOTE

The maximum number of columns that can be set for the current section, depends on the document orientation (SectionPage.Landscape) and currently selected paper size (SectionPage.PaperKind).

See Also