# PdfGradientStop struct

> One color stop of a gradient. PdfGradientStop struct, PdfNetStack.Drawing namespace.

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

One color stop of a gradient.

```csharp
public readonly record struct PdfGradientStop : IEquatable<PdfGradientStop>
```

**Implements**

[IEquatable&lt;PdfGradientStop\>](https://learn.microsoft.com/dotnet/api/system.iequatable\-1)

## Constructors

### <a id="PdfNetStack_Drawing_PdfGradientStop__ctor_System_Double_PdfNetStack_Drawing_PdfColor_"></a> PdfGradientStop\(double, PdfColor\)

One color stop of a gradient.

```csharp
public PdfGradientStop(double Offset, PdfColor Color)
```

#### Parameters

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

Position along the gradient, 0 to 1.

`Color` [PdfColor](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolor/)

Color at that position.

## Properties

### <a id="PdfNetStack_Drawing_PdfGradientStop_Color"></a> Color

Color at that position.

```csharp
public PdfColor Color { get; init; }
```

#### Property Value

 [PdfColor](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolor/)

### <a id="PdfNetStack_Drawing_PdfGradientStop_Offset"></a> Offset

Position along the gradient, 0 to 1.

```csharp
public double Offset { get; init; }
```

#### Property Value

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

## Used in

- [Draw on PDF pages in C# and .NET](https://www.jadev-corp.com/guides/drawing/)

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