officefileapi-devexpress-dot-spreadsheet-dot-tablestyleelement-777f0d63.md
Specifies the number of table rows or columns displayed as odd and even stripes in the table.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
int StripeSize { get; set; }
Property StripeSize As Integer
| Type | Description |
|---|---|
| Int32 |
An integer that specifies the number of table rows or columns displayed in row or column stripes in the table.
|
To improve the readability of a table, you can apply alternating shading for rows or columns in your table.
Striped Rows Format
Striped Columns Format
Note
Use the StripeSize property of the FirstRowStripe, SecondRowStripe, FirstColumnStripe or SecondColumnStripe table style elements only. If you try so set this property for any other table style element, an exception occurs.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StripeSize 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.
secondRowStripeStyle.Fill.BackgroundColor = System.Drawing.Color.FromArgb(234, 234, 234)
secondRowStripeStyle.StripeSize = 1
Finally
See Also