# WireShape class

Namespace: [Grasshopper2.UI.Canvas](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.canvas.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class WireShape
```

A shape representing a wire connecting two parameters.

**Derived types:** [WireShapeDefault](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshapedefault.md)

## Constructors

- [WireShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/ctor.md): Create a wire between two parameters.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/bounds.md): Gets the bounds of the spline shape.
- [ShapeType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/shapetype.md): (static) Gets or sets the type which defines wire shapes. If unset, the fallback logic will revert to [WireShapeDefault](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshapedefault.md). If you assign a type, it must derive from [WireShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape.md) and provide a public constructor which takes two `PointF` structs.
- [Source](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/source.md): Gets the instance ID of the source parameter.
- [Target](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/target.md): Gets the instance ID of the target parameter.

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/create.md): (2 overloads, static) Create a new wire shape between two parameter attributes. This relies on the type assigned to the static [WireShape.ShapeType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/shapetype.md) property.
- [DistanceTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/distanceto.md): Measure the minimum distance between this wire and some point.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/draw.md): Draw this shape using the given pen.
- [Intersects](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/intersects.md): Test whether this wire-shape intersect the given box.
- [IsCoincident](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/iscoincident.md): Test whether this wire is coincident with some point within some tolerance.
- [Project](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.wireshape/project.md): Find the point on the wire closest to a search point.
