---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/GradientAxialShading
---

# GradientAxialShading

## Overview

`GradientAxialShading` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `PatternColorSpace`.

Defines a linear (axial) gradient between two colors for use as a fill pattern.

This class provides 2 methods for working with GradientAxialShading objects in .NET programs.
Available methods include: `GradientAxialShading`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `End`, `EndColor`, `Start`, `StartColor`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `StartColor` | `Aspose.Pdf.Color?` | Read/Write | Start color of the gradient. |
| `EndColor` | `Aspose.Pdf.Color?` | Read/Write | End color of the gradient. |
| `Start` | `Aspose.Pdf.Point` | Read/Write | Start point of the gradient axis. |
| `End` | `Aspose.Pdf.Point` | Read/Write | End point of the gradient axis. |

## Methods

| Signature | Description |
|-----------|-------------|
| `GradientAxialShading()` | Construct an empty gradient. |
| `GradientAxialShading(startColor: Aspose.Pdf.Color, endColor: Aspose.Pdf.Color)` | Construct with start/end colours; endpoints default to (0,0)→(1,0). |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)