Properties

Bounds

#
Gets the bounds for this fragment (essentially the Pivot + Size).
RectangleF Bounds { get; }

Description

#
Gets the description for this fragment.
string Description { get; }

Icon

#
Gets the 24x24 icon for this fragment.
Bitmap Icon { get; }

Name

#
Gets the name for this fragment.
string Name { get; }

Pivot

#
Gets or sets the insertion point for this fragment.
PointF Pivot { get; set; }

Size

#
Gets the size of this fragment as determined by the most recent Layout.
SizeF Size { get; }

Methods

Layout

#
Performs a complete recursive layout of this fragment and all contained fragments. Note that layout only determines the Size of the fragment, not it's location.
bool Layout(
Font
font
Font to use during Layout.
)
True on success, false on failure.

Position

#
Performs a complete recursive positioning of this fragment and all contained fragments. You need to run a Layout pass prior to calling Position to make sure all sizes are up to date.
bool Position(
PointF
location
Base line of position.
)
True on success, false on failure.

Render

#
Render this fragment and all contained fragments.
void Render(
graphics,
Font
font,
Color
colour
)

ToExpression

#
Format the fragment as a partial Grasshopper expression.
string ToExpression()
The expression equivalent of this fragment.