# LineStyle class

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

```cs
public class LineStyle
```

Bundles gridlines property.

## Constructors

- [LineStyle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/ctor.md): Create new grid linestyle.

## Properties

- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/default.md): (static) Gets the default grid lines properties.
- [DefaultTight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/defaulttight.md): (static) Gets the default grid lines properties for tight grids.
- [Frequency](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/frequency.md): Gets the frequency with which major grid lines appear.
- [LineType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/linetype.md): Gets the the line style.
- [MajorColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/majorcolour.md): Gets the colour in which major grid lines are drawn.
- [MinorColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/minorcolour.md): Gets the colour in which minor grid lines are drawn.
- [Spacing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/spacing.md): Gets at what visual separation the fading in of new minor grid lines starts.
- [Thickness](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/thickness.md): Gets the thickness of minor grid lines.

## Methods

- [CreatePen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/createpen.md): Create the edge to use for the negative portion of the line.
- [WithColours](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/withcolours.md): Swap out the line colours.
- [WithFrequency](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/withfrequency.md): Modify the thin/thick frequency.
- [WithLineType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/withlinetype.md): Swap out the line type.
- [WithSpacing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/withspacing.md): Modify the spacing for the narrowest line-bundle.
- [WithThickness](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.linestyle/withthickness.md): Swap out the line thickness.
