VegaRise.NET
Back to DOM

ShadingPatternValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the preset pattern used for a shading (background) fill.

Remarks

The pattern values defined here correspond to the drawing-ML preset patterns and can be applied to a instance to render striped, cross-hatched, checkered, or percentage-based backgrounds behind text, paragraphs, table cells, or shapes. Shading Percentage-based patterns ( … ) map two colors onto a bitmap mask, where the numerical value represents the approximate coverage of the pattern color. pct5 pct95

Examples

csharp
1// 1. Solid shading
2var shading = new Shading { shadingPatternValue = ShadingPatternValues.solid, BackgroundColor = new Color("#F5F5F5") };
3
csharp
1// 2. Horizontal stripes
2var shading = new Shading
3{
4 shadingPatternValue = ShadingPatternValues.horzStripe,
5 BackgroundColor = Color.White,
6 PatternColor = Color.LightGray
7};
8
csharp
1// 3. 10% coverage pattern
2var shading = new Shading
3{
4 shadingPatternValue = ShadingPatternValues.pct10,
5 BackgroundColor = Color.White,
6 PatternColor = Color.DarkBlue
7};
8
csharp
1// 4. Diagonal cross-hatch
2var shading = new Shading
3{
4 shadingPatternValue = ShadingPatternValues.diagCross,
5 BackgroundColor = Color.White,
6 PatternColor = Color.Gray
7};
8

Fields

clear

Clear pattern — no fill.

diagCross

Diagonal cross-hatch.

diagStripe

Forward diagonal stripes.

horzCross

Horizontal cross-hatch.

horzStripe

Horizontal stripes.

nil

No pattern (nil value, no shading rendered).

pct10

Approximately 10% pattern coverage.

pct12

Approximately 12% pattern coverage.

pct15

Approximately 15% pattern coverage.

pct20

Approximately 20% pattern coverage.

pct25

Approximately 25% pattern coverage.

pct30

Approximately 30% pattern coverage.

pct35

Approximately 35% pattern coverage.

pct37

Approximately 37% pattern coverage.

pct40

Approximately 40% pattern coverage.

pct45

Approximately 45% pattern coverage.

pct5

Approximately 5% pattern coverage.

pct50

Approximately 50% pattern coverage.

pct55

Approximately 55% pattern coverage.

pct60

Approximately 60% pattern coverage.

pct62

Approximately 62% pattern coverage.

pct65

Approximately 65% pattern coverage.

pct70

Approximately 70% pattern coverage.

pct75

Approximately 75% pattern coverage.

pct80

Approximately 80% pattern coverage.

pct85

Approximately 85% pattern coverage.

pct87

Approximately 87% pattern coverage.

pct90

Approximately 90% pattern coverage.

pct95

Approximately 95% pattern coverage.

reverseDiagStripe

Reverse diagonal stripes.

solid

Solid single-color fill.

thinDiagCross

Thin diagonal cross-hatch.

thinDiagStripe

Thin forward diagonal stripes.

thinHorzCross

Thin horizontal cross-hatch.

thinHorzStripe

Thin horizontal stripes.

thinReverseDiagStripe

Thin reverse diagonal stripes.

thinVertStripe

Thin vertical stripes.

vertStripe

Vertical stripes.

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.