GH_CapsuleCreateCapsule Method (RectangleF, GH_Palette, Int32, Int32) |
Create a new blank capsule.
Namespace:
Grasshopper.GUI.Canvas
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static GH_Capsule CreateCapsule(
RectangleF box,
GH_Palette palette,
int radius,
int highlight
)
Public Shared Function CreateCapsule (
box As RectangleF,
palette As GH_Palette,
radius As Integer,
highlight As Integer
) 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. - radius
- Type: SystemInt32
Radius of rounded corners. A radius of zero or lower disables corner fillets. - highlight
- Type: SystemInt32
Height of the highlight bar. A value of zero or lower disables the highlight.
Return Value
Type:
GH_CapsuleA new instance of GH_Capsule. Caller is responsible for disposing of the object.
See Also