Back to DOM
PathShadeTypeValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the shape of a path-based gradient.
Remarks
Used by . Determines whether the gradient follows a circle, a rectangle, or the shape's own path. PathShade.PathShadeType
Examples
csharp
1// 1. Shape-following gradient
2var ps = new PathShade { PathShadeType = PathShadeTypeValues.shape };
3
csharp
1// 2. Circular gradient
2var ps = new PathShade { PathShadeType = PathShadeTypeValues.circle };
3
csharp
1// 3. Rectangular gradient
2var ps = new PathShade { PathShadeType = PathShadeTypeValues.rect };
3
csharp
1// 4. Radial glow effect
2var ps = new PathShade
3{
4 PathShadeType = PathShadeTypeValues.circle,
5 FillToRectangle = new FillToRectangle { Top = 0, Left = 0, Right = 100, Bottom = 100 }
6};
7