# GetLine class

Namespace: [Rhino.Input.Custom](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.input.custom.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class GetLine : IDisposable
```

Use to interactively get a line. The Rhino "Line" command uses GetLine.

## Constructors

- [GetLine](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/ctor.md)

## Finalizer

- [~GetLine](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [AcceptZeroLengthLine](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/acceptzerolengthline.md): Controls whether or not a zero length line is acceptable. The default is to require the user to keep picking the end point until we get a point different than the start point.
- [FeedbackColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/feedbackcolor.md): If set, the feedback color is used to draw the dynamic line when the second point is begin picked. If not set, the active layer color is used.
- [FirstPointPrompt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/firstpointprompt.md): Prompt when getting first point
- [FixedLength](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/fixedlength.md): If FixedLength > 0, the line must have the specified length
- [GetLineMode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/getlinemode.md): Mode used
- [HaveFeedbackColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/havefeedbackcolor.md): If true, the feedback color is used to draw the dynamic line when the second point is begin picked. If false, the active layer color is used.
- [MidPointPrompt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/midpointprompt.md): Prompt when getting midpoint
- [SecondPointPrompt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/secondpointprompt.md): Prompt when getting second point

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/dispose.md): (2 overloads) Actively reclaims unmanaged resources that this instance uses.
- [EnableAllVariations](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/enableallvariations.md): If true, then all line variations are shown if the default line mode is used
- [EnableFromBothSidesOption](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/enablefrombothsidesoption.md): If true, then the "BothSides" option shows up when the start point is interactively picked.
- [EnableFromMidPointOption](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/enablefrommidpointoption.md): If true, the "MidPoint" options shows up
- [Get](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/get.md): Perform the 'get' operation.
- [SetFirstPoint](https://developer.rhino3d.com/api/rhinocommon/type/rhino.input.custom.getline/setfirstpoint.md): Use SetFirstPoint to specify the line's starting point and skip the start point interactive picking
