VegaRise.NET
Back to DOM

FillStyleListClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Represents a collection of fill styles that can be applied to shapes, table cells or other fillable elements.

Remarks

is a lightweight container that groups one or more fill definitions (solid colors, gradients, pattern fills, etc.) so they can be queried or applied as a set. The property is nullable to allow consumers to distinguish between "no fills configured" () and "an explicit empty set" (an empty list). FillStyleList Fills null Fill style lists are used by to define the palette of fills available to shapes and chart elements. FormatScheme

Examples

csharp
1// 1. A list containing one solid fill
2var list = new FillStyleList
3{
4 Fills = new List<IColor> { new Color("#1E88E5") }
5};
6
csharp
1// 2. A list with several solid colors for chart series
2var list = new FillStyleList
3{
4 Fills = new List<IColor>
5 {
6 new Color("#4CAF50"),
7 new Color("#FF9800"),
8 new Color("#F44336")
9 }
10};
11
csharp
1// 3. Empty but explicitly configured
2var list = new FillStyleList { Fills = new List<IColor>() };
3
csharp
1// 4. Unspecified (null list) — consumer decides fallback
2var list = new FillStyleList();
3
csharp
1// 5. Attach to a FormatScheme
2var scheme = new FormatScheme
3{
4 FillStyleList = new List<BaseFill> { new Fill { SolidFill = new Color("#2196F3") } }
5};
6

Properties

FillsIColor

Gets or sets the list of fill definitions available in this style list.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in