public interface IShape : IStorable
Base interface for all canvas vector shapes.

Properties

Grips

#
Grip[] Grips { get; }
Gets all the grips for this shape.

Nomen

#
Nomen Nomen { get; }
Gets a description of this shape.

Methods

Bounds

#
RectangleF Bounds(Style style)
Compute the bounds for this shape.
style (Style)

Coincident

#
bool Coincident(PointF location, Style style)
Test for point-shape coincidence.
location (PointF)Point location for intersection test.
style (Style)Display style (width and arrowheads matter).
True if the point is coincident with the shape.

DragGrips

#
IShape DragGrips(Grip[] grips)
Modify this shape via grip dragging.
grips (Grip[])A possibly partial list of moved grips.

DrawShape

#
void DrawShape(Graphics graphics, Color background, Style style)
Draw the shape.
graphics (Graphics)
background (Color)
style (Style)

Store

void Store(IWriter writer)
This method is called whenever the instance is required to serialize itself.
inherited fromIStorable
writer (IWriter)Writer object to serialize with.

Translate

#
IShape Translate(float dx, float dy)
Move this shape.
dx (float)
dy (float)