Class ZebraColor
Inheritance
Namespace: IronPPT.Models
Assembly: IronPPT.dll
Syntax
public class ZebraColor : Object
When a table or repeating element should alternate between two banding colors, ZebraColor pairs them. The object holds the two colors that alternate row by row, the striped pattern that makes a long table easier to read, so a developer supplies the pair once rather than coloring each band by hand.
Build a ZebraColor at the point the alternating fill is needed and assign it where banding is expected. Both colors are set together through the constructor: one overload takes two Color objects, the other takes two hex or named color strings, so the pair can come from existing Color values or straight from string literals.
Color1 and Color2 expose the two banding colors and stay editable after construction, so an established pattern can be retuned without rebuilding it. Order matters: Color1 is the first band and Color2 the second, and they then repeat in sequence. Choose colors with enough contrast that the banding reads at a glance but not so much that it competes with the content.
var zebra = new ZebraColor("#FFFFFF", "#EEEEEE");The add slide how-to covers building slide content, and the Color reference details the color type each band uses.
Constructors
ZebraColor(Color, Color)
Declaration
public ZebraColor(Color color1, Color color2)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color1 | |
| Color | color2 |
ZebraColor(String, String)
Declaration
public ZebraColor(string color1, string color2)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | color1 | |
| System.String | color2 |
Properties
Color1
Declaration
public Color Color1 { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Color2
Declaration
public Color Color2 { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |