Click or drag to resize

GH_ComponentAttributesRenderComponentCapsule Method (GH_Canvas, Graphics, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)

Utility function, draws the component capsule including all specified elements.

Namespace:  Grasshopper.Kernel.Attributes
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
protected void RenderComponentCapsule(
	GH_Canvas canvas,
	Graphics graphics,
	bool drawComponentBaseBox,
	bool drawComponentNameBox,
	bool drawJaggedEdges,
	bool drawParameterGrips,
	bool drawParameterNames,
	bool drawZuiElements
)

Parameters

canvas
Type: Grasshopper.GUI.CanvasGH_Canvas
Canvas to draw into.
graphics
Type: System.DrawingGraphics
Graphics object to draw with.
drawComponentBaseBox
Type: SystemBoolean
If true, will draw the component background box.
drawComponentNameBox
Type: SystemBoolean
If true, will draw component nickname/icon element.
drawJaggedEdges
Type: SystemBoolean
If true, parameterless sides will have jagged edges drawn on them.
drawParameterGrips
Type: SystemBoolean
If true, will draw parameter grips.
drawParameterNames
Type: SystemBoolean
If true, will draw parameter nicknames.
drawZuiElements
Type: SystemBoolean
If true, will draw ZUI variable parameter interface.
See Also