GH_CapsuleCreateCapsule Method (RectangleF, GH_Palette) |
Create a new blank capsule with default radius and highlight dimensions.
Namespace:
Grasshopper.GUI.Canvas
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static GH_Capsule CreateCapsule(
RectangleF box,
GH_Palette palette
)
Public Shared Function CreateCapsule (
box As RectangleF,
palette As GH_Palette
) As GH_Capsule
Parameters
- box
- Type: System.DrawingRectangleF
Box for capsule dimensions. The box will be grown until it is at least 3 pixels wide and high. - palette
- Type: Grasshopper.GUI.CanvasGH_Palette
Colour palette to apply.
Return Value
Type:
GH_CapsuleA new instance of GH_Capsule. Caller is responsible for disposing of the object.
See Also