# GraphicState Class

> The graphic state is an internal data structure in a PDF file.

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

```csharp
class GraphicState : SystemIDisposable
```

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

**Inherits from:** `SystemIDisposable`

## Description

The graphic state is an internal data structure in a PDF file.

The graphics state holds the parameters that describe graphics within that file.

These parameters define how individual graphics are presented on the page, including layers and transparencies.

**Referenced by:** [`Form`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Form.md), [`Image`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Image.md), [`Path`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Path.md), [`Shading`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Shading.md), [`Text`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Text.md), [`TextRun`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/TextRun.md)

**Uses types:** [`Color`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Color.md), [`ExtendedGraphicState`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ExtendedGraphicState.md), [`LineCap`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/LineCap.md), [`LineJoin`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/LineJoin.md), [`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md)

## Constructors

### GraphicState

```csharp
Datalogics.PDFL.GraphicState.GraphicState()
```

*constructor*

Create a new default GraphicState.

## Properties

### DashPattern

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

The line DashPattern controls the pattern of dashes and gaps used to stroke paths. It is specified by a dash phase and then a series of elements of a DashPattern list. The DashPattern's members are numbers that specify the lengths of alternating dashes and gaps; the numbers must be nonnegative and not all zero. The dash phase specifies the distance into the dash pattern at which to start the dash. The elements of both the DashPattern List and the dash phase are expressed in user space units. This retrieves the DashPattern used by the Pattern list current graphic state.

### ExtendedGraphicState

```csharp
ExtendedGraphicState Datalogics.PDFL.GraphicState.ExtendedGraphicState { get; set; }
```

The ExtendedGraphicState associated with this GraphicState.

The ExtendedGraphicState can contain additional parameters such as transparency, blend mode, and overprint settings that are not part of the basic GraphicState.

### FillColor

```csharp
Color Datalogics.PDFL.GraphicState.FillColor { get; set; }
```

The color used for filling operations in the current GraphicState.

### LineCap

```csharp
LineCap Datalogics.PDFL.GraphicState.LineCap { get; set; }
```

The line cap style used by the current GraphicState, specifying the shape at the ends of open subpaths when stroked.

### LineFlatness

```csharp
double Datalogics.PDFL.GraphicState.LineFlatness { get; set; }
```

The line flatness tolerance in the current GraphicState, corresponding to the i operator. Default is 1.0.

Flatness controls the maximum distance (in device pixels) between a curve and the flattened line segments that approximate it.

### LineJoin

```csharp
LineJoin Datalogics.PDFL.GraphicState.LineJoin { get; set; }
```

The line join style used by the current GraphicState, specifying the shape at the corners where consecutive segments of a path connect at an angle.

### MiterLimit

```csharp
double Datalogics.PDFL.GraphicState.MiterLimit { get; set; }
```

The miter limit for line joins in the current GraphicState, corresponding to the M operator. Default is 10.0.

When two line segments meet at a sharp angle and mitered joins have been specified, the miter limit controls when the join is beveled instead.

### RenderIntent

```csharp
RenderIntent Datalogics.PDFL.GraphicState.RenderIntent { get; set; }
```

The color rendering intent for the current GraphicState, corresponding to the Intent key in the image dictionary. The default is RelColorimetric.

### StrokeColor

```csharp
Color Datalogics.PDFL.GraphicState.StrokeColor { get; set; }
```

The color used for stroking operations in the current GraphicState.

### Width

```csharp
double Datalogics.PDFL.GraphicState.Width { get; set; }
```

The line width used for stroking operations by the current GraphicState, in user space units.

## Methods

### Dispose

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

**Returns:** `void`
