# Dash8 class

Namespace: [Grasshopper2.Display](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.display.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Dash8
```

Represents a curve dash pattern to be used in rhino viewport display. Due to implementation details in [DisplayPen](https://mcneel-apidocs-rhinocommon-7f6eb10c6967.herokuapp.com/api/rhinocommon/type/rhino.display.displaypen/) this struct accepts at most 8 dash-gap-dash-gap values.

## Constructors

- [Dash8](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/ctor.md): Create a new dash pattern from the 8 possible values.

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/count.md): Gets the number of dashes and gaps. If this pattern is solid, the count will be zero.
- [IsSolid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/issolid.md): Gets whether this pattern is a solid line.
- [Long](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/long.md): (static) Gets the long dash pattern.
- [Medium](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/medium.md): (static) Gets the medium dash pattern.
- [Short](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/short.md): (static) Gets the short dash pattern.
- [Solid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/solid.md): (static) Gets the solid dash pattern. Note that nulls are also treated as Solid.
- [Varying](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/varying.md): (static) Gets the varying dash pattern.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/item.md): Gets the dash or gap length at the given index.

## Methods

- [ToArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/toarray.md): Create an array using a screen pixel scaling factor.
- [TryConstruct](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/tryconstruct.md): (static) Try and construct a dash pattern from a value.
- [TryParse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.dash8/tryparse.md): (static) Try and parse a dash pattern.
