public abstract class Box : IShape
Represents a rectangle used in a vector icon.

Constructors

Box

#
protected Box(IReader reader)
reader (IReader)

Box

#
protected Box(RectangleF value)
value (RectangleF)

Properties

SvgPathCode

#
public virtual string SvgPathCode { get; }
SvgPathCode

Value

#
public RectangleF Value { get; protected set; }

Methods

Draw

#
public void Draw(IconContext context, VectorStyle style)
context (IconContext)
style (VectorStyle)
Draw

Glue

#
public void Glue(IconContext context, GraphicsPath path)
context (IconContext)
path (GraphicsPath)
Glue

Make

#
public static Box Make(Dot centre, Nem width, Nem height)
Create a rectangle from centre, width and height.
centre (Dot)Centre.
width (Nem)Width.
height (Nem)Height.

Make

#
public static Box Make(Nem x0, Nem y0, Nem x1, Nem y1)
Create a new variable rectangle by defining the min/max values per axis.
x0 (Nem)Input edge.
y0 (Nem)Top edge.
x1 (Nem)Right edge.
y1 (Nem)Bottom edge.

Make

#
public static Box Make(RectangleF rectangle)
Create a new constant rectangle.
rectangle (RectangleF)Rectangle.
Rectangle.

Store

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

Update

#
public abstract void Update(string name, double value)
name (string)
value (double)
Update

Convertors

OperationResultDescription
implicitRectangleFBoxCreate a new constant rectangle.