GridSkin

References
public sealed class GridSkin : IStorable
A collection of visual properties for canvas grids.

Constructors

GridSkin

#
Deserialisation constructor.
public GridSkin(
reader
)

GridSkin

#
Create a new grid skin.
public GridSkin(
SizeF
cell,
fHorizontal,
fVertical,
Color
thin,
Color
thick
)

Fields

DefaultRegularDim

#
Gets the default grid for document canvasses in dark mode.
public static readonly GridSkin DefaultRegularDim

DefaultRegularLit

#
Gets the default grid for document canvasses in bright mode.
public static readonly GridSkin DefaultRegularLit

Properties

Cell

#
Gets the size of a single grid cell.
public SizeF Cell { get; }

HorizontalFrequency

#
Gets the frequency of horizontal thick lines.
public int HorizontalFrequency { get; }

ThickColour

#
Gets the colour for thick grid lines.
public Color ThickColour { get; }

ThinColour

#
Gets the colour for thin grid lines.
public Color ThinColour { get; }

VerticalFrequency

#
Gets the frequency of vertical thick lines.
public int VerticalFrequency { get; }

Methods

Fade

#
Fade this grid skin
public GridSkin Fade(
factor
)

Interpolate

#
Interpolate two grid skins.
public GridSkin Interpolate(
other,
factor
)

Store

#
This method is called whenever the instance is required to serialize itself.
public void Store(
writer
Writer object to serialize with.
)
Store