VegaRise.NET
Back to DOM

TableLayoutValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the layout algorithm used to size table columns.

Remarks

uses the column widths specified on the table style (or on the grid), while lets the layout engine size columns based on their content. Fixed Autofit

Examples

csharp
1// 1. Fixed layout (columns sized by explicit widths)
2var style = new TableStyle { Layout = TableLayoutValues.Fixed };
3
csharp
1// 2. Autofit (columns sized by content)
2var style = new TableStyle { Layout = TableLayoutValues.Autofit };
3
csharp
1// 3. Fixed layout with explicit column widths
2var style = new TableStyle
3{
4 Layout = TableLayoutValues.Fixed,
5 TableGridColsWidth = new List<DocumentUnit> { new(2.0, Units.inch), new(4.0, Units.inch) }
6};
7
csharp
1// 4. Autofit + AllowAutoFit
2var style = new TableStyle { Layout = TableLayoutValues.Autofit, AllowAutoFit = true };
3

Fields

Autofit

Automatic layout — column widths are determined by content.

Fixed

Fixed layout — column widths are authoritative.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in