GH_Border

References
public class GH_Border
Represents a resizing border of a Grasshopper canvas object.

Constructors

GH_Border

#
Create a new border.
public GH_Border(
rectangle,
Shape of border.
topology
Border topology.
)

Properties

Region

#
Gets the shape of the border.
public RectangleF Region { get; }

Size_Cursor

#
Gets the cursor associated with this border.
public Cursor Size_Cursor { get; }

Topology

#
Gets the type of border.
public GH_BorderTopology Topology { get; }

Methods

Contains

#
Test a point for border inclusion.
public bool Contains(
PointF
pt
Point to test.
)
True if pt is inside or on this border.

CreateBorders

#
Static (Shared) method for creating a set of borders.
public static List<GH_Border> CreateBorders(
box,
Box for border creation.
borderLeft,
Width of the leftmost border.
borderRight,
Width of the rightmost border.
borderTop,
Width of the topmost border.
borderBottom
Width of the bottommost border.
)
A list of borders.

CreateBorders

#
Static (Shared) method for creating a set of borders.
public static List<GH_Border> CreateBorders(
box,
Box for border creation.
borderSize
The width of all borders.
)
A list of borders.

CreateBorders

#
Static (Shared) method for creating a set of borders.
public static List<GH_Border> CreateBorders(
box,
Box for border creation.
borderWidth,
The width of all vertical.
borderHeight
The height of all horizontal borders.
)
A list of borders.

CreateBorders

#
Static (Shared) method for creating a set of borders.
public static List<GH_Border> CreateBorders(
box,
Box for border creation.
padding
The size of the borders along all four edges.
)
A list of borders.