[]
Specifies the path type for a shape gradient fill.
Use this enum with GradientPathType to control how a gradient is applied to a shape. Supported gradient fill path types include linear, radial, rectangular, and path-based gradients.
public enum PathShapeType
Public Enum PathShapeType
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
shape.Fill.TwoColorGradient(GradientStyle.FromCenter, 1);
shape.Fill.GradientPathType = PathShapeType.Radial;
| Name | Description |
|---|---|
| Linear | Specifies that the gradient uses a linear path. |
| Mixed | Specifies that multiple gradient path shape types are present or that the path shape type is not uniform. |
| Path | Specifies the shape path type of a gradient. |
| Radial | Specifies a radial path shape for the gradient. |
| Rectangular | Specifies the rectangular type of gradient. |