VegaRise.NET
Back to DOM

FormatSchemeClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Represents a named collection of formatting resources (fills, lines and effects) that can be applied together as a coherent style palette.

Remarks

groups visual resources used by themes and elements: fill styles for shapes and backgrounds, outline/line styles and effect presets. Consumers should treat the lists as the authoritative source for the scheme's visual assets. Lists may be empty when no entries are defined. FormatScheme Format schemes are used by . FormatSchema

Examples

csharp
1// 1. Fills + outlines for a modern theme
2var scheme = new FormatScheme
3{
4 Name = "Modern",
5 FillStyleList = new List<BaseFill>
6 {
7 new Fill { SolidFill = new Color("#2196F3") },
8 new Fill { SolidFill = new Color("#FF9800") }
9 },
10 LineStyleList = new List<IOutLine>
11 {
12 new OutLine { SolidFill = new Color("#333333"), Width = new DocumentUnit(1, Units.pt) }
13 }
14};
15
csharp
1// 2. Background fills (subtle) plus effect presets
2var scheme = new FormatScheme
3{
4 Name = "Subtle",
5 BackgroundFillStyleList = new List<BaseFill>
6 {
7 new Fill { SolidFill = new Color("#FAFAFA") }
8 },
9 EffectStyles = new List<IEffectStyle>
10 {
11 new EffectStyle { OuterShadow = new OuterShadow { Blur = 4, Distance = 2 } }
12 }
13};
14
csharp
1// 3. Line-only scheme (for outlines on shapes)
2var scheme = new FormatScheme
3{
4 Name = "Outlines",
5 LineStyleList = new List<IOutLine>
6 {
7 new OutLine { SolidFill = Color.Black, Width = new DocumentUnit(0.5, Units.pt) },
8 new OutLine { SolidFill = Color.Gray, Width = new DocumentUnit(1, Units.pt) }
9 }
10};
11
csharp
1// 4. Attach to a theme
2var theme = new Theme
3{
4 Name = "Corporate",
5 FormatSchema = new FormatScheme { Name = "Corporate" }
6};
7
csharp
1// 5. Empty scheme — consumer applies its own defaults
2var scheme = new FormatScheme { Name = "Empty" };
3

Properties

BackgroundFillStyleListBaseFill

Gets or sets the background fill styles associated with the scheme.

EffectStylesIEffectStyle

Gets or sets the effect presets (shadows, glows, 3D effects) provided by the scheme.

FillStyleListBaseFill

Gets or sets the primary fill styles used by the scheme.

LineStyleListIOutLine

Gets or sets the collection of outline/line styles used by the scheme.

Name

Gets or sets the human-readable name of the format scheme.

VegaRiseVDocs.NET

Reset Password

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

Remember your password? Sign in