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

# ShadingPattern

## Overview

`ShadingPattern` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `Pattern`.

Shading pattern (PatternType 2, §8.7.3.2): smooth gradient.

Properties: `Matrix`, `PatternType`, `Shading`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `PatternType` | `int` | Read | Gets the pattern type. |
| `Shading` | `ShadingBase?` | Read | The shading that defines the gradient, or null if absent. |
| `Matrix` | `double[]?` | Read | Transformation matrix [a b c d e f], or null if absent (identity). |

## See Also

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