public abstract class Lin : IShape
Represents a line used in a vector icon.

Constructors

Lin

#
protected Lin(IReader reader)
reader (IReader)

Lin

#
protected Lin(LineF value)
value (LineF)

Properties

SvgPathCode

#
public virtual string SvgPathCode { get; }
SvgPathCode

Value

#
public LineF 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 Lin Make(Dot point, Nem length, Nem angle)
Create a line from start point, angle and length.
point (Dot)Line start.
length (Nem)Line length.
angle (Nem)Line angle, in degrees.

Make

#
public static Lin Make(Dot point0, Dot point1)
Create a line between two slaved points.
point0 (Dot)
point1 (Dot)

Make

#
public static Lin Make(LineF line, string state = null)
Create a new constant line, or a line slaved to a state.
line (LineF)
state (string = null)

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
implicitLineFLinCreate a new constant rectangle.