# AxisStyle 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 AxisStyle
```

Bundles axial display properties.

## Constructors

- [AxisStyle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/ctor.md): Create a new grid axis.

## Properties

- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/default.md): (static) Gets the default axis properties.
- [DefaultTight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/defaulttight.md): (static) Gets the default axis properties for tight grids.
- [DefaultX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/defaultx.md): (static) Gets the default x-axis properties.
- [DefaultY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/defaulty.md): (static) Gets the default y-axis properties.
- [NegativeColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/negativecolour.md): Gets the colour of the negative portion of this axis.
- [NegativeType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/negativetype.md): Gets the display style for the negative portion of this axis.
- [PositiveColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/positivecolour.md): Gets the colour of the positive portion of this axis.
- [PositiveType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/positivetype.md): Gets the display style for the positive portion of this axis.
- [Thickness](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/thickness.md): Gets the thickness of the axis.

## Methods

- [CreateNegativePen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/createnegativepen.md): Create the edge to use for the negative portion of the axis.
- [CreatePositivePen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/createpositivepen.md): Create the edge to use for the positive portion of the axis.
- [WithColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/withcolour.md): Override both the negative and positive axis colours.
- [WithColours](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/withcolours.md): Override both the negative and positive axis colours.
- [WithThickness](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/withthickness.md): Override the axis thickness.
- [WithType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/withtype.md): Override both the negative and positive axis line types.
- [WithTypes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.axisstyle/withtypes.md): Override both the negative and positive axis line types.
