# PdfGradientBrush class

> Base of linear and radial gradients. PdfGradientBrush class, PdfNetStack.Drawing namespace.

Namespace: [PdfNetStack.Drawing](https://www.jadev-corp.com/api/pdfnetstack-drawing/)  
Assembly: PdfNetStack.dll  
Package: `PdfNetStack`

Base of linear and radial gradients.

```csharp
public abstract class PdfGradientBrush : PdfBrush
```

**Inheritance**

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[PdfBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfbrush/) ← 
[PdfGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgradientbrush/)

**Derived**

[PdfLinearGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdflineargradientbrush/), 
[PdfRadialGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfradialgradientbrush/)

## Properties

### <a id="PdfNetStack_Drawing_PdfGradientBrush_Alpha"></a> Alpha

The common opacity of all stops.

```csharp
public double Alpha { get; }
```

#### Property Value

 [double](https://learn.microsoft.com/dotnet/api/system.double)

### <a id="PdfNetStack_Drawing_PdfGradientBrush_Extend"></a> Extend

When true, the end colors continue beyond the gradient's ends. Default true.

```csharp
public bool Extend { get; }
```

#### Property Value

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="PdfNetStack_Drawing_PdfGradientBrush_Stops"></a> Stops

The color stops, in order.

```csharp
public IReadOnlyList<PdfGradientStop> Stops { get; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[PdfGradientStop](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgradientstop/)\>

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/pdfgradientbrush/
