[IoId("00000000-54d3-4f3a-82eb-2e3330c2bf21")] public sealed class Style : IStorable
The styling attributes for canvas shapes.

Constructors

Style

#
public Style(Family colour, bool doubling, float stroke, ArrowStyle arrowHead = ArrowStyle.None, float arrowFactor = 1)
colour (OpenColor.Family)
doubling (bool)
stroke (float)
arrowHead (ArrowStyle = ArrowStyle.None)
arrowFactor (float = 1)

Style

#
public Style(IReader reader)
reader (IReader)

Properties

ArrowFactor

#
public float ArrowFactor { get; }
Gets the arrow head size.

ArrowHead

#
public ArrowStyle ArrowHead { get; }
Gets the arrow head state.

1 == arrow at start.

2 == arrow at end.

3 == arrow at both ends.

other == no arrow heads.

ArrowSize

#
public float ArrowSize { get; }
Compute the actual size of the arrowheads. This equals the product of the stroke and the arrow factor.

Colour

#
public OpenColor.Family Colour { get; }
Gets the colour for this shape.

Double

#
public bool Double { get; }
Gets whether to draw this shape with doubled strokes.

Stroke

#
public float Stroke { get; }
Gets the edge stroke width.

Methods

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

WithArrowHead

#
public Style WithArrowHead(ArrowStyle head)
head (ArrowStyle)

WithArrowSize

#
public Style WithArrowSize(float size)
size (float)

WithColour

#
public Style WithColour(Family colour)
colour (OpenColor.Family)

WithDoubling

#
public Style WithDoubling(bool doubling)
doubling (bool)

WithEdgeStroke

#
public Style WithEdgeStroke(float stroke)
stroke (float)