Back to Devexpress

Table.ShowTableStyleColumnStripes Property

officefileapi-devexpress-dot-spreadsheet-dot-table-2906fb28.md

latest3.8 KB
Original Source

Table.ShowTableStyleColumnStripes Property

Indicates whether alternate shading should be applied to the table columns.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool ShowTableStyleColumnStripes { get; set; }
vb
Property ShowTableStyleColumnStripes As Boolean

Property Value

TypeDescription
Boolean

true , to apply striped column formatting to the table; otherwise, false.

|

Remarks

To apply banding to columns in a table, set the ShowTableStyleColumnStripes property to true and the Table.ShowTableStyleRowStripes property to false.

To change the format of alternate column stripes, modify the TableStyleElementType.FirstColumnStripe and TableStyleElementType.SecondColumnStripe elements of the style applied to a table.

The TableStyleElement.StripeSize property of these table style elements allows you to specify the number of table columns to be displayed as odd and even column stripes. You can also specify the borders (TableStyleElement.Borders), background color (TableStyleElement.Fill) and font (TableStyleElement.Font) of column stripes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowTableStyleColumnStripes 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.

spreadsheet-document-api-examples-part2/CS/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.cs#L105

csharp
table.ShowTableStyleRowStripes = false;
table.ShowTableStyleColumnStripes = true;

spreadsheet-document-api-examples-part2/VB/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.vb#L99

vb
table.ShowTableStyleRowStripes = False
table.ShowTableStyleColumnStripes = True

See Also

Table Interface

Table Members

DevExpress.Spreadsheet Namespace