LineStyle

References
public class LineStyle
Bundles gridlines property.

Constructors

LineStyle

#
Create new grid linestyle.
public LineStyle(
Color
minorColour,
Color
majorColour,
lineType,
thickness,
spacing,
frequency
)

Properties

Default

#
Gets the default grid lines properties.
public static LineStyle Default { get; }

DefaultTight

#
Gets the default grid lines properties for tight grids.
public static LineStyle DefaultTight { get; }

Frequency

#
Gets the frequency with which major grid lines appear.
public int Frequency { get; }

LineType

#
Gets the the line style.
public LineType LineType { get; }

MajorColour

#
Gets the colour in which major grid lines are drawn.
public Color MajorColour { get; }

MinorColour

#
Gets the colour in which minor grid lines are drawn.
public Color MinorColour { get; }

Spacing

#
Gets at what visual separation the fading in of new minor grid lines starts.
public float Spacing { get; }

Thickness

#
Gets the thickness of minor grid lines.
public float Thickness { get; }

Methods

CreatePen

#
Create the edge to use for the negative portion of the line.
public Pen CreatePen(
fade
Line fade factor. Factors between zero and one yield an interpolation between transparent and thin lines. Factors between one and two yield an interpolation between thin and thick lines. Factors over two just yield thick lines.
)
Pen or null if style is hidden.

WithColours

#
Swap out the line colours.
public LineStyle WithColours(
Color
minor,
Color
major
)

WithFrequency

#
Modify the thin/thick frequency.
public LineStyle WithFrequency(
frequency
)

WithLineType

#
Swap out the line type.
public LineStyle WithLineType()

WithSpacing

#
Modify the spacing for the narrowest line-bundle.
public LineStyle WithSpacing(
spacing
)

WithThickness

#
Swap out the line thickness.
public LineStyle WithThickness(
thickness
)