Back to Devexpress

TablePropertiesBase.TableLayout Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablepropertiesbase-31cac1cb.md

latest3.8 KB
Original Source

TablePropertiesBase.TableLayout Property

Gets or sets the Table.TableLayout table property.

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
Nullable<TableLayoutType>

A TableLayoutType enumeration value or null , if not set.

|

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#L125

csharp
tStyleMain.CellBackgroundColor = System.Drawing.Color.LightBlue;
tStyleMain.TableLayout = TableLayoutType.Fixed;
tStyleMain.Name = "MyTableStyle";

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

csharp
tStyleMain.CellBackgroundColor = System.Drawing.Color.LightBlue;
tStyleMain.TableLayout = TableLayoutType.Fixed;
tStyleMain.Name = "MyTableStyle";

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

vb
tStyleMain.CellBackgroundColor = System.Drawing.Color.LightBlue
tStyleMain.TableLayout = DevExpress.XtraRichEdit.API.Native.TableLayoutType.Fixed
tStyleMain.Name = "MyTableStyle"

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L83

vb
tStyleMain.CellBackgroundColor = System.Drawing.Color.LightBlue
tStyleMain.TableLayout = TableLayoutType.Fixed
tStyleMain.Name = "MyTableStyle"

See Also

TablePropertiesBase Interface

TablePropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace