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
   [Expand]Fundamentals
   [Expand]Concepts
   [Collapse]Visual Elements
    [Expand]Rich Edit Control
    [Expand]Command UI
    [Collapse]Dialogs
      Paste Special Dialog
      Font Dialog
      Paragraph and Tabs Dialogs
      List Dialogs
      Find and Replace Dialog
      Symbol Dialog
      Bookmark Dialog
      Edit Hyperlink Dialog
      Page Setup Dialog
      Columns Dialog
      Line Numbers Dialog
      Insert Merge Field Dialog
      Document Protection Dialogs
      Editing Permissions Dialog
      Table Layout Dialogs
      Table Properties Dialogs
      Borders and Shading Dialog
      Style Editor Dialog
      Inline and Floating Object Layout Dialog
      Table Style Dialog
      Document Properties Dialog
    [Expand]Views
   [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

Table Layout Dialogs

The RichEditControl provides a number of dialogs, which allows end-users to work with tables: insert new tables into the document, as well as insert, delete and split individual cells of existing tables.

Expanded Insert Table

The Insert Table dialog allows end-users to insert a new table with the specified number of rows and columns into a document.

You can provide end-users with the capability to invoke the Inset Table dialog via the Tables toolbar or Ribbon page group. To do this, provide Bars or Ribbon UI for the RichEditControl (see How to: Create a Simple Word Processor with a Bar UI or How to: Create a Simple Word Processor with a Ribbon UI) and create the Tables toolbar or Ribbon page group from the Insert group of bars.

To invoke the Insert Table dialog use the InsertTableCommand command.

To customize the default Insert Table dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with completely new dialog, handle the RichEditControl.InsertTableFormShowing event.

Also, you can programmatically insert a new table into the document. To do this, call the TableCollection.Create API method.

Expanded Insert Cells

The Insert Cells dialog enables end-users to insert a cell into the existing table and select the way to adjust table cells.

By default, the Insert Cells dialog is invoked when an end-user right-clicks a table in the RichEditControl, selects the Insert item from the context menu and clicks Insert Cells.

You can also provide end-users with the capability to invoke the dialog via the Rows & Columns toolbar or Ribbon page group. To do this, provide Bars or Ribbon UI for the RichEditControl (see How to: Create a Simple Word Processor with a Bar UI or How to: Create a Simple Word Processor with a Ribbon UI) and create the Rows & Columns toolbar or Ribbon page group from the Table group of bars.

To invoke the Insert Cells dialog use the ShowInsertTableCellsFormCommand command.

To customize the default Insert Cells dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with completely new dialog, handle the RichEditControl.InsertTableCellsFormShowing event.

Expanded Delete Cells

The Delete Cells dialog enables end-users to delete particular cells form a table and select a way of adjusting table cells.

By default, the Delete Cells dialog is invoked when an end-user right-clicks on a table in the RichEditControl and selects Delete Cells from the context menu.

You can also provide end-users with the capability to invoke the dialog via the Rows & Columns toolbar or Ribbon page group. To do this, provide Bars or Ribbon UI for the RichEditControl (see How to: Create a Simple Word Processor with a Bar UI or How to: Create a Simple Word Processor with a Ribbon UI) and create the Rows & Columns toolbar or Ribbon page group from the Table group of bars.

To invoke the Delete Cells dialog use the ShowDeleteTableCellsFormCommand command.

To customize the default Delete Cells dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with completely new dialog, handle the RichEditControl.DeleteTableCellsFormShowing event.

Expanded Split Cells

The Split Cells dialog enables end-users to split the selected cells into the specified number of rows and columns.

By default, the Split Cells dialog is invoked when an end-user right-clicks a table in the RichEditControl and selects the Split Cells item from the context menu.

You can also provide end-users with the capability to invoke the dialog via the Merge toolbar or Ribbon page group. To do this, provide Bars or Ribbon UI for the RichEditControl (see How to: Create a Simple Word Processor with a Bar UI or How to: Create a Simple Word Processor with a Ribbon UI) and create the Merge toolbar or Ribbon page group from the Table group of bars.

To invoke the Insert Table dialog use the ShowSplitTableCellsFormCommand command.

To customize the default Split Cells dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with completely new dialog, handle the RichEditControl.SplitTableCellsFormShowing event.

Expanded See Also

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