LabelProperties

References
public struct LabelProperties
Properties for a tick labels on a numberline.

Constructors

LabelProperties

#
public LabelProperties(float size, Color colour)
Create a properties.
size (float)
colour (Color)

Properties

Colour

#
public Color Colour { get; }
Gets the colour for the label.

DefaultLong

#
public static LabelProperties DefaultLong { get; }
Gets the default properties for short number line labels.

DefaultShort

#
public static LabelProperties DefaultShort { get; }
Gets the default properties for short number line labels.

Size

#
public float Size { get; }
Gets the font size for the label in points. Derive sizes from StandardFonts.Size(FontSize) rather than hard-coding them, so they render the same on every platform.

Methods

WithColour

#
public LabelProperties WithColour(Color colour)
colour (Color)

WithSize

#
public LabelProperties WithSize(float size)
size (float)