Back to Devexpress

TableStyleElement.StripeSize Property

officefileapi-devexpress-dot-spreadsheet-dot-tablestyleelement-777f0d63.md

latest2.6 KB
Original Source

TableStyleElement.StripeSize Property

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

Declaration

csharp
int StripeSize { get; set; }
vb
Property StripeSize As Integer

Property Value

TypeDescription
Int32

An integer that specifies the number of table rows or columns displayed in row or column stripes in the table.

|

Remarks

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.

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

vb
secondRowStripeStyle.Fill.BackgroundColor = System.Drawing.Color.FromArgb(234, 234, 234)
    secondRowStripeStyle.StripeSize = 1
Finally

See Also

Spreadsheet Tables

TableStyleElement Interface

TableStyleElement Members

DevExpress.Spreadsheet Namespace