officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-table-10c93b88.md
Gets or sets the algorithm which shall be used to lay out the contents of the current table within the document.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
TableLayoutType TableLayout { get; set; }
Property TableLayout As TableLayoutType
| Type | Description |
|---|---|
| TableLayoutType |
A TableLayoutType enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Autofit |
The table is displayed using the autofit layout algorithm.
| | Fixed |
The table is displayed using a fixed layout algorithm.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the TableLayout property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L55
table.TableAlignment = TableRowAlignment.Center;
table.TableLayout = TableLayoutType.Fixed;
table.PreferredWidthType = WidthType.Fixed;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L59
table.TableAlignment = TableRowAlignment.Center;
table.TableLayout = TableLayoutType.Fixed;
table.PreferredWidthType = WidthType.Fixed;
word-document-api-examples/CS/CodeExamples/TablesActions.cs#L88
// Set the table width to a fixed value.
table.TableLayout = TableLayoutType.Fixed;
table.PreferredWidthType = WidthType.Fixed;
table.TableLayout = TableLayoutType.Fixed;
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L48
table.TableAlignment = DevExpress.XtraRichEdit.API.Native.TableRowAlignment.Center
table.TableLayout = DevExpress.XtraRichEdit.API.Native.TableLayoutType.Fixed
table.PreferredWidthType = DevExpress.XtraRichEdit.API.Native.WidthType.Fixed
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L50
table.TableAlignment = TableRowAlignment.Center
table.TableLayout = TableLayoutType.Fixed
table.PreferredWidthType = WidthType.Fixed
word-document-api-examples/VB/CodeExamples/TablesActions.vb#L82
' Set the table width to a fixed value.
table.TableLayout = DevExpress.XtraRichEdit.API.Native.TableLayoutType.Fixed
table.PreferredWidthType = DevExpress.XtraRichEdit.API.Native.WidthType.Fixed
table.TableLayout = TableLayoutType.Fixed
See Also