---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/SetDash
---

# SetDash

## Overview

`SetDash` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `Operator`.

d — Set dash pattern.

This class provides 6 methods for working with SetDash objects in .NET programs.
Available methods include: `Accept`, `IsTextShowOperator`, `SetDash`, `ToPdf`, `ToString`, `ValueEquals`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `CommandName`, `DashArray`, `DashPhase`, `Index`, `Pattern`, `Phase`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `DashArray` | `int[]` | Read/Write | Gets or sets the dash array. |
| `DashPhase` | `int` | Read/Write | Gets or sets the dash phase. |
| `Pattern` | `int[]` | Read/Write | Alias forDashArray. |
| `Phase` | `int` | Read/Write | Alias forDashPhase. |
| `CommandName` | `string` | Read | The PDF command name (last token of the serialised form, e.g. |
| `Index` | `int` | Read/Write | 1-based position of this operator within its containing OperatorCollection. |

## Methods

| Signature | Description |
|-----------|-------------|
| `SetDash(pattern: int[], phase: int)` | Sets the dash value. |
| `ToPdf()` | Calls ToPdf on this SetDash instance. |
| `ToString()` | Calls ToString on this SetDash instance. |
| `Accept(visitor: IOperatorSelector)` | Calls Accept on this SetDash instance. |
| `IsTextShowOperator(op: Operator)` | True when op is a text-showing operator (Tj / TJ / ' / " — concrete subclasses of TextShowOperator). |
| `ValueEquals(op: Operator)` | True when this operator's serialised PDF form equals op's. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)