AxisStyle

References
public class AxisStyle
Bundles axial display properties.

Constructors

AxisStyle

#
Create a new grid axis.
public AxisStyle(
thickness,
Thickness of axis.
Color
negativeColour,
Colour for negative part of axis.
Color
positiveColour,
Colour for positive part of axis.
negativeType,
Style for negative part of axis.
positiveType
Style for positive part of axis.
)

Properties

Default

#
Gets the default axis properties.
public static AxisStyle Default { get; }

DefaultTight

#
Gets the default axis properties for tight grids.
public static AxisStyle DefaultTight { get; }

DefaultX

#
Gets the default x-axis properties.
public static AxisStyle DefaultX { get; }

DefaultY

#
Gets the default y-axis properties.
public static AxisStyle DefaultY { get; }

NegativeColour

#
Gets the colour of the negative portion of this axis.
public Color NegativeColour { get; }

NegativeType

#
Gets the display style for the negative portion of this axis.
public LineType NegativeType { get; }

PositiveColour

#
Gets the colour of the positive portion of this axis.
public Color PositiveColour { get; }

PositiveType

#
Gets the display style for the positive portion of this axis.
public LineType PositiveType { get; }

Thickness

#
Gets the thickness of the axis.
public float Thickness { get; }

Methods

CreateNegativePen

#
Create the edge to use for the negative portion of the axis.
public Pen CreateNegativePen()
Pen or null if style is hidden.

CreatePositivePen

#
Create the edge to use for the positive portion of the axis.
public Pen CreatePositivePen()
Pen or null if style is hidden.

WithColour

#
Override both the negative and positive axis colours.
public AxisStyle WithColour(
Color
colour
)

WithColours

#
Override both the negative and positive axis colours.
public AxisStyle WithColours(
Color
negative,
Color
positive
)

WithThickness

#
Override the axis thickness.
public AxisStyle WithThickness(
thickness
)

WithType

#
Override both the negative and positive axis line types.
public AxisStyle WithType()

WithTypes

#
Override both the negative and positive axis line types.
public AxisStyle WithTypes(
negative,
positive
)