GridSkin

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

Constructors

GridSkin

#
public GridSkin(IReader reader)
Deserialisation constructor.
reader (IReader)

GridSkin

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

Fields

DefaultRegularDim

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

DefaultRegularLit

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

Properties

Cell

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

HorizontalFrequency

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

ThickColour

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

ThinColour

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

VerticalFrequency

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

Methods

Fade

#
public GridSkin Fade(float factor)
Fade this grid skin
factor (float)

Interpolate

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

Store

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