VegaRise.NET
Back to DOM

PathShadeClass

Definition

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

Represents a path-based shade used to describe a gradient that follows a shape's contour.

Remarks

is attached to a to indicate that the gradient should be drawn along a path (circular, rectangular, or shape-following) rather than along a line. PathShade Gradient The optional defines the area receiving the gradient; when, the entire shape is filled. FillToRectangle null

Examples

csharp
1// 1. Circular path shade
2var shade = new PathShade { PathShadeType = PathShadeTypeValues.circle };
3
csharp
1// 2. Rectangular path shade
2var shade = new PathShade { PathShadeType = PathShadeTypeValues.rect };
3
csharp
1// 3. Path shade limited to a sub-rectangle
2var shade = new PathShade
3{
4 PathShadeType = PathShadeTypeValues.circle,
5 FillToRectangle = new FillToRectangle { Top = 25, Left = 25, Right = 75, Bottom = 75 }
6};
7
csharp
1// 4. Attach to a gradient
2var gradient = new Gradient
3{
4 GradientStops = new List<IGradientStop> { /* ... */ },
5 PathShade = new PathShade { PathShadeType = PathShadeTypeValues.circle }
6};
7

Properties

FillToRectangleIFillToRectangle

Gets or sets the rectangle that defines the region receiving the gradient.

PathShadeTypePathShadeTypeValues

Gets or sets the type of path shade (circular, rectangular, or shape-based).

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.