Builder

References
public sealed class Builder
Provides a pipeline for populating vector icons.

Constructors

Builder

#
Create an empty icon builder.
public Builder(
size
Target size of icon.
)

Builder

#
Create an empty icon builder.
public Builder(
width,
Target width of icon.
height
Target height of icon.
)

Properties

CurrentEdge

#
Gets the current edge edge.
public Edge CurrentEdge { get; }

CurrentFill

#
Gets the current fill brush.
public Fill CurrentFill { get; }

CurrentOrder

#
Gets the current draw order value.
public FillEdgeOrder CurrentOrder { get; }

CurrentRank

#
Gets the current rank.
public int CurrentRank { get; }

CurrentStyle

#
Gets the current style. The style is a mashup of the order, edge and fill states.
public VectorStyle CurrentStyle { get; }

Size

#
Gets the size of this icon. The 'Current' prefix is for naming consistency, the size is set from the constructor and never changes during the lifetime of the builder.
public Size Size { get; }

Methods

Arc

#
Add an arc to this icon.
public void Arc(
Arc
arc
)

Arc

#
Add an arc to this icon.
public void Arc(
arc,
state = null
)

Arrow

#
Add a standard fixed arrow shape to this icon. This method adds a line (for the arrowshaft) and a polyline (for the arrowhead).
public bool Arrow(
PointF
tail,
Tail point.
PointF
tip,
Tip point.
size
Size of arrowhead.
)

Bezier

#
Add a bezier curve to this icon.
public void Bezier(
bezier,
state = null
)

Bezier

#
Add a bezier curve to this icon.
public void Bezier(
bezier
)

Bezier

#
Add a bezier curve to this icon.
public void Bezier(
ax,
ay,
bx,
by,
cx,
cy,
dx,
dy,
state = null
)

Bezier

#
Add a bezier curve to this icon.
public void Bezier(
PointF
a,
PointF
b,
PointF
c,
PointF
d,
state = null
)

Box

#
Add a rectangle to this icon.
public void Box(
Box
box
)

Box

#
Add a rectangle to this icon.
public void Box(
ax,
ay,
bx,
by,
state = null
)

Box

#
Add a rectangle to this icon.
public void Box(
RectangleF
box,
state = null
)

Circle

#
Add a circle to this icon.
public void Circle(
circle
)

Circle

#
Add a circle to this icon.
public void Circle(
circle,
state = null
)

Circle

#
Add a circle to this icon.
public void Circle(
cx,
cy,
radius,
state = null
)

Curve

#
Add a polyarc curve to this icon. Polyarcs are curves consisting of lines and circular arcs. Consecutive points are always connected with a straight line, consecutive points with an angle or direction constraint in between them are connected by a tangent arc.
public void Curve(
params object[]
vertices
Array of vertices. A vertex is either a coordinate indicating an actual corner on the compound, or a tangency constraint indicating the start tangent of the next segment. Coordinates must be specified as either Point or PointF, tangency constraints must be either Size, SizeF, or Angle, specified clockwise from positive x.
)

Curve

#
Add a compound curve to this icon.
public void Curve(
curve
)

Element

#
Add a shape to the icon.
[EditorBrowsable(EditorBrowsableState.Never)] public bool Element(
IShape
shape
Shape to add.
)

Ellipse

#
Add an ellipse to this icon.
public void Ellipse(
cx,
cy,
radiusX,
radiusY,
state = null
)

Ellipse

#
Add an ellipse to this icon.
public void Ellipse(
ellipse
)

Ellipse

#
Add an ellipse to this icon.
public void Ellipse(
ellipse,
state = null
)

Line

#
Add a line to this icon.
public void Line(
ax,
ay,
bx,
by,
state = null
)

Line

#
Add a line to this icon.
public void Line(
line
)

Line

#
Add a line to this icon.
public void Line(
line,
state = null
)

Line

#
Add a line to this icon.
public void Line(
PointF
a,
PointF
b,
state = null
)

Lune

#
Add a lune to this icon. A lune is an arc with an elliptic arc on the inside, like the lit part of the crescent or gibbous moon.
public void Lune(
disc,
Outer disc.
angle,
Angle (in degrees, clockwise).
width
Maximum width between outer and inner arc.
)

PainterDelegate

#
Gets a painting delegate for this builder.
public Action<Context, Rectangle> PainterDelegate()

Polyline

#
Add a polyline to this icon.
public void Polyline(
params double[]
coordinates
)

Polyline

#
Add a polyline to this icon.
public void Polyline(
params PointF[]
vertices
)

Polyline

#
Add a polyline shape to this icon.
public void Polyline(
polyline
)

State

#
Add an icon state.
public void State(
state
State to add.
)

State

#
Add an icon state with a unit domain initialised to one.
public void State(
name
Name of state to add.
)

Text

#
Add regular text to this icon.
public void Text(
text,
Text to display.
x,
Centre x-coordinate.
y,
Centre y-coordinate.
size
Height of text as a factor of icon height.
)

TextBold

#
Add bold text to this icon.
public void TextBold(
text,
Text to display.
x,
Centre x-coordinate.
y,
Centre y-coordinate.
size
Height of text as a factor of icon height.
)

TextItalic

#
Add italic text to this icon.
public void TextItalic(
text,
Text to display.
x,
Centre x-coordinate.
y,
Centre y-coordinate.
size
Height of text as a factor of icon height.
)

WithEdge

#
Set the current edge state and returns a disposable object for using blocks.
public IDisposable WithEdge(
Color
colour,
Edge colour.
thickness
Edge thickness.
)
Disposable state.

WithEdge

#
Set the current edge state and returns a disposable object for using blocks.
public IDisposable WithEdge(
Edge
edge
Edge to set.
)
Disposable state.

WithEdge

#
Set the current edge state and returns a disposable object for using blocks.
public IDisposable WithEdge(
thickness
Thickness of edge.
)
Disposable state.

WithEdge

#
Set the current edge state and returns a disposable object for using blocks.
public IDisposable WithEdge(
colour,
Edge colour.
thickness
Edge thickness.
)
Disposable state.

WithFill

#
Set the current fill state and returns a disposable object for using blocks.
public IDisposable WithFill(
Color
colour
Fill colour to set.
)
Disposable state.

WithFill

#
Set the current fill state and returns a disposable object for using blocks.
public IDisposable WithFill(
fill
Fill to set.
)
Disposable state.

WithFill

#
Set the current fill state and returns a disposable object for using blocks.
public IDisposable WithFill(
colour
Fill colour to set.
)
Disposable state.

WithOrder

#
Set the current draw order and returns a disposable object for using blocks.
public IDisposable WithOrder(
order
Order to set.
)
Disposable state.

WithRank

#
Set the current category and returns a disposable object for using blocks.
public IDisposable WithRank(
rank
Category to set.
)
Disposable state.