Back to Devexpress

Table.TableLayout Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-table-10c93b88.md

latest5.2 KB
Original Source

Table.TableLayout Property

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

Declaration

csharp
TableLayoutType TableLayout { get; set; }
vb
Property TableLayout As TableLayoutType

Property Value

TypeDescription
TableLayoutType

A TableLayoutType enumeration value.

|

Available values:

NameDescription
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

csharp
table.TableAlignment = TableRowAlignment.Center;
table.TableLayout = TableLayoutType.Fixed;
table.PreferredWidthType = WidthType.Fixed;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L59

csharp
table.TableAlignment = TableRowAlignment.Center;
table.TableLayout = TableLayoutType.Fixed;
table.PreferredWidthType = WidthType.Fixed;

word-document-api-examples/CS/CodeExamples/TablesActions.cs#L88

csharp
// Set the table width to a fixed value.
table.TableLayout = TableLayoutType.Fixed;
table.PreferredWidthType = WidthType.Fixed;

spreadsheet-document-api-use-worksheet-table-as-data-source/CS/SpreadsheetDocumentServerAsDataSourceExample/Form1.cs#L53

csharp
table.TableLayout = TableLayoutType.Fixed;

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L48

vb
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

vb
table.TableAlignment = TableRowAlignment.Center
table.TableLayout = TableLayoutType.Fixed
table.PreferredWidthType = WidthType.Fixed

word-document-api-examples/VB/CodeExamples/TablesActions.vb#L82

vb
' Set the table width to a fixed value.
table.TableLayout = DevExpress.XtraRichEdit.API.Native.TableLayoutType.Fixed
table.PreferredWidthType = DevExpress.XtraRichEdit.API.Native.WidthType.Fixed

spreadsheet-document-api-use-worksheet-table-as-data-source/VB/SpreadsheetDocumentServerAsDataSourceExample/Form1.vb#L45

vb
table.TableLayout = TableLayoutType.Fixed

See Also

Table Interface

Table Members

DevExpress.XtraRichEdit.API.Native Namespace