# LineF struct

Namespace: [Grasshopper2.Eto.Drawing](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.eto.drawing.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public struct LineF
```

Defines a line segment.

## Constructors

- [LineF](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/ctor.md): (4 overloads) Create a new line.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/bounds.md): Gets the bounding box of this line segment.
- [End](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/end.md): Gets the end point of the line.
- [IsValid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/isvalid.md): Gets whether this line is invalid in any way.
- [IsZero](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/iszero.md): Gets whether this line has zero length.
- [Length](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/length.md): Gets the length of the line.
- [Start](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/start.md): Gets the start point of the line.
- [TangentX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/tangentx.md): Gets the x component of the unit tangent vector.
- [TangentY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/tangenty.md): Gets the y component of the unit tangent vector.
- [Unset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/unset.md): (static) Gets an unset line.
- [X0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/x0.md): Gets the x-component of the start point of the line.
- [X1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/x1.md): Gets the x-component of the end point of the line.
- [Y0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/y0.md): Gets the y-component of the start point of the line.
- [Y1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/y1.md): Gets the y-component of the end point of the line.

## Methods

- [ClosestParameter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/closestparameter.md): Find the parameter on the line closest to a point.
- [ClosestPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/closestpoint.md): Find the point on the line closest to another point.
- [Extend](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/extend.md): Extend the ends of the line by a physical distance.
- [FillBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/fillbox.md): Extend or clip this line so that it fills the interior of a box. If the line does not intersect with the box interior, a zero length segment is returned.
- [Intersect](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/intersect.md): (2 overloads) Find the intersection parameters between two lines.
- [Move](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/move.md): Move this line.
- [PointAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/pointat.md): Gets the point along the line at the specified parameter.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.linef/op-implicit.md): (static) Defines widening conversion from Rhino.Geometry.Line to Eto.LineF.
