# AxialShadingPattern Class

> A color blend that varies along an axis.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/AxialShadingPattern
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class AxialShadingPattern : ShadingPattern
```

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

**Inherits from:** [`ShadingPattern`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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.

**Uses types:** [`Color`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Color.md), [`ColorSpace`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ColorSpace.md), [`Function`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Function.md), [`PDFObject`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/PDFObject.md), [`Point`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Point.md), [`Rect`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ColorSpace.md)): The color space for the pattern.
- `coords` ([`System.Collections.Generic.IList< Point >`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Point.md)): The coordinates of the two endpoints of the axial shading.
- `function` ([`System.Collections.Generic.IList< Function >`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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; }
```

Gets whether anti-aliasing is enabled for the shading.

When enabled, the shading function is filtered to prevent aliasing artifacts.

### BackgroundColor

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

Gets the background color of the shading pattern.

This color must be in the color space of the shading pattern. If present, it is used to fill the areas that are outside the bounds of the shading object. May be NULL.

### BoundingBox

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

Gets the bounding box of the shading.

The coordinates are interpreted in the target coordinate space. If present, provides an additional, temporary clipping boundary to the shading.

### ColorSpace

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

Gets the color space of a shading pattern.

This space is restricted to be any space except a Pattern space.

### Coords

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

The coordinates of the two endpoints of the axial shading.

### Domain

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

The domain of the parametric variable t for the axial shading.

An array of two numbers that specify the limiting values of the parametric variable t. This variable t varies linearly between these two values as the gradient varies between the starting and ending points of the axis.

Defaults to [0, 1]. May be NULL.

### Extend

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

Whether the shading extends beyond the start and end points of the axis.

An array of two boolean values indicating whether to extend the shading beyond the starting and ending points of the axis, respectively.

Default value: [false, false]. May be NULL.

### Function

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

The function(s) that determine the color channel values for the shading.

One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels, where n is the number of color components in the shading's color space. The functions are called with a parametric variable t which varies across the Domain.

### PDFObject

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

Gets the underlying PDF object for this pattern.

## 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.
