# AxialShadingPattern Class

> A color blend that varies along an axis.

- Product: Adobe PDF Library 18
- Language: .NET
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/AxialShadingPattern
- Version index: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/llms.txt

```csharp
class AxialShadingPattern : ShadingPattern
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** [`ShadingPattern`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/ShadingPattern.md)

## Description

A color blend that varies along an axis.

An axial shading specifies a color blend that varies along a linear axis between two endpoints, and indefinitely perpendicular to that axis.

**Referenced by:** [`AxialShadingPattern`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/AxialShadingPattern.md)

**Uses types:** [`AxialShadingPattern`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/AxialShadingPattern.md), [`Color`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Color.md), [`ColorSpace`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/ColorSpace.md), [`Function`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Function.md), [`PDFObject`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/PDFObject.md), [`Point`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Point.md), [`Rect`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Rect.md)

## Constructors

### AxialShadingPattern

```csharp
Datalogics.PDFL.AxialShadingPattern.AxialShadingPattern(ColorSpace colorSpace, System.Collections.Generic.IList< Point > coords, System.Collections.Generic.IList< Function > function)
```

*constructor*

**Parameters**

- `colorSpace` ([`ColorSpace`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/ColorSpace.md)): The color space for the pattern.
- `coords` ([`System.Collections.Generic.IList< Point >`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Point.md)): The coordinates of the two endpoints of the axial shading.
- `function` ([`System.Collections.Generic.IList< Function >`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Function.md)): One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels.

Create an AxialShadingPattern.

## Properties

### AntiAlias

```csharp
bool Datalogics.PDFL.ShadingPattern.AntiAlias { get; set; }
```

### BackgroundColor

```csharp
Color Datalogics.PDFL.ShadingPattern.BackgroundColor { get; set; }
```

### BoundingBox

```csharp
Rect Datalogics.PDFL.ShadingPattern.BoundingBox { get; set; }
```

### ColorSpace

```csharp
ColorSpace Datalogics.PDFL.ShadingPattern.ColorSpace { get; set; }
```

### Coords

```csharp
System.Collections.Generic.IList<Point> Datalogics.PDFL.AxialShadingPattern.Coords { get; set; }
```

### Domain

```csharp
System.Collections.Generic.IList<System.Double> Datalogics.PDFL.AxialShadingPattern.Domain { get; set; }
```

### Extend

```csharp
System.Collections.Generic.IList<System.Boolean> Datalogics.PDFL.AxialShadingPattern.Extend { get; set; }
```

### Function

```csharp
System.Collections.Generic.IList<Function> Datalogics.PDFL.AxialShadingPattern.Function { get; set; }
```

### PDFObject

```csharp
PDFObject Datalogics.PDFL.Pattern.PDFObject { get; }
```

## Methods

### Dispose

```csharp
void Datalogics.PDFL.Pattern.Dispose()
```

**Returns:** `void`

### ToString

```csharp
override string Datalogics.PDFL.AxialShadingPattern.ToString()
```

**Returns:** `override string`

A formatted string describing this AxialShadingPattern.

Return a string representation of the AxialShadingPattern.

The string includes the color space, background color, bounding box, anti-alias flag, coordinates, function, domain, and extend values.
