GH_CapsuleCreateTextCapsule Method (RectangleF, RectangleF, GH_Palette, String) |
Create a new capsule with content text.
Namespace:
Grasshopper.GUI.Canvas
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static GH_Capsule CreateTextCapsule(
RectangleF box,
RectangleF textbox,
GH_Palette palette,
string text
)
Public Shared Function CreateTextCapsule (
box As RectangleF,
textbox As RectangleF,
palette As GH_Palette,
text As String
) 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. - textbox
- Type: System.DrawingRectangleF
Box into which the text will be drawn. - palette
- Type: Grasshopper.GUI.CanvasGH_Palette
Colour palette to apply. - text
- Type: SystemString
Text to display inside the capsule.
Return Value
Type:
GH_CapsuleA new instance of GH_Capsule. Caller is responsible for disposing of the object.
See Also