# IsDashed

> Whether the reference wire is drawn with a dashed pattern.

## Definition

* **Type:** Property
* **Namespace:** [Unity.GraphToolkit.Editor.GraphVisualization](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization.md)
* **Assembly:** UnityEditor

```csharp
public bool IsDashed { get; set; }
```

### Remarks

Setting a new value overwrites any existing dash pattern overrides for that wire. The wire keeps the dashed pattern until you set this property back to `false` or call [WireReference.ClearCustomization](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference/clearcustomization.md). Setting this property has no effect when the [WireReference](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference.md) has no associated [WireReference.Context](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference/context.md), such as when it is `default`. Throws ObjectDisposedException when you access this method after you call [Context.Dispose](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/context/dispose.md) on the context.

Apply a dashed style to a wire by retrieving its [WireReference](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference.md) from a visualization [WireReference.Context](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphvisualization/wirereference/context.md) and setting this property.

### Examples

```csharp
WireReference wire = context.GetWireReference(outputPortID, inputPortID);
wire.IsDashed = true;
```
