Back to Devexpress

Table Positioning Dialog

windowsforms-401731-controls-and-libraries-rich-text-editor-visual-elements-dialogs-table-positioning-dialog.md

latest3.0 KB
Original Source

Table Positioning Dialog

  • Apr 15, 2020

The Table Positioning dialog allows users to specify table position options: horizontal and vertical position, and distance from surrounding text. The dialog is available for tables with the Text Wrapping option set to Around.

Click the Positioning… button in the Table Properties dialog to invoke the Table Positioning dialog.

Use API from the table below to specify Table Positioning options in code:

MemberDescription
Table.TextWrappingTypeWraps text around a table. Set this property to TableTextWrappingType.Around.
Table.RelativeHorizontalPosition
Table.HorizontalAlignment
Table.OffsetXRelativeSpecify a table’s horizontal alignment relative to an element specified by the RelativeHorizontalPosition property. Set the HorizontalAlignment to None to use the OffsetXRelative property.
Table.RelativeVerticalPosition
Table.VerticalAlignment
Table.OffsetXRelativeSpecify a table’s vertical alignment relative to an element specified by the RelativeVerticalPosition property. Set the VerticalAlignment to None to use the OffsetYRelative property.
Table.MarginTop
Table.MarginRight
Table.MarginBottom
Table.MarginLeftSpecify the distance between the table and surrounding text.

Handle the RichEditControl.TablePositioningFormShowing event to customize the default Table Positioning dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with completely new dialog. Refer to the How to: Customize the Search Form or How to: Customize the Hyperlink Form document for a code sample.