VegaRise.NET
Back to DOM

ZebraColorClass

Definition

Namespace
DOM.Elements.Graphics.Colors
Assembly
DOM.dll

Represents a two-color pair used for alternating (zebra) row or column shading in tables.

Remarks

holds the two colors that alternate across a table's rows or columns. It is attached to a table via and typically consumed together with a that disables banding flags. ZebraColor Table.ZebraColor TableLook

Examples

csharp
1// 1. Light gray / white pair
2var zebra = new ZebraColor { FirstColor = Color.White, SecondColor = Color.LightGray };
3
csharp
1// 2. Two-tone blue pair
2var zebra = new ZebraColor { FirstColor = new Color("#E3F2FD"), SecondColor = new Color("#BBDEFB") };
3
csharp
1// 3. Only the first color (consumer default fills the other)
2var zebra = new ZebraColor { FirstColor = Color.White };
3
csharp
1// 4. Attach to a table
2var table = new Table(4, 3) { ZebraColor = zebra };
3

Properties

FirstColorColor

Gets or sets the first (odd-row) color of the zebra pattern.

SecondColorColor

Gets or sets the second (even-row) color of the zebra pattern.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.