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

# Dash

## Overview

`Dash` is a class in Aspose.PDF FOSS for .NET.

Represents a dash pattern for borders.

This class provides 2 methods for working with Dash objects in .NET programs.
Available methods include: `Dash`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Off`, `On`, `Pattern`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `On` | `int` | Read/Write | Length of the dash. |
| `Off` | `int` | Read/Write | Length of the gap. |
| `Pattern` | `int[]` | Read | Raw dash-pattern array (alternating on/off lengths). |

## Methods

| Signature | Description |
|-----------|-------------|
| `Dash(on: int, off: int)` | Calls Dash on this Dash instance. |
| `Dash(pattern: int[])` | Construct from an explicit dash pattern (on/off pairs). |

## See Also

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