# PushButton class

Namespace: [Grasshopper2.UI.Toolbar](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.toolbar.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class PushButton : BarItem
```

A button on a tool bar.

## Constructors

- [PushButton](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/ctor.md): Create a new tool bar button.

## Properties

- [AdjacentOnLeftSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/adjacentonleftside.md)
- [AdjacentOnRightSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/adjacentonrightside.md)
- [CloseOnActivate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/closeonactivate.md): Gets whether clicking this button should close any temporary form it is on.
- [Style](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/style.md): Gets or sets the icon+text drawing style.

## Methods

- [DrawDisabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/drawdisabled.md)
- [DrawFocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/drawfocus.md)
- [DrawHover](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/drawhover.md)
- [DrawNormal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/drawnormal.md)
- [MouseDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/mousedown.md)
- [MouseLeave](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/mouseleave.md)
- [MouseMove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/mousemove.md)
- [MouseUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/mouseup.md)
- [ShowTooltipAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/showtooltipat.md)
- [Trigger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/trigger.md): Trigger this button.

## Events

- [ButtonPressed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.pushbutton/buttonpressed.md): Event raised on button presses.

## Inherited Members

- From [BarItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem.md): [Bar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/bar.md), [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/bounds.md), [Enabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/enabled.md), [Icon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/icon.md), [KeyCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keycode.md), [MaximumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/maximumwidth.md), [MinimumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/minimumwidth.md), [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/nomen.md), [OffColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/offcolour.md), [OnColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/oncolour.md), [CreateOutline](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/createoutline.md), [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/draw.md), [DrawIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawicon.md), [DrawIconAndText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawiconandtext.md), [DrawText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawtext.md), [FindGroupByChapter<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/findgroupbychapter.md), [FindGroupBySection<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/findgroupbysection.md), [HasNeighbourToTheLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/hasneighbourtotheleft.md), [HasNeighbourToTheRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/hasneighbourtotheright.md), [IsEnabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/isenabled.md), [KeyDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keydown.md), [KeyUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keyup.md), [Layout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/layout.md), [MouseDoubleClick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mousedoubleclick.md), [NeighbourToTheLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/neighbourtotheleft.md), [NeighbourToTheRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/neighbourtotheright.md), [OverrideInfo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/overrideinfo.md), [OverrideText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/overridetext.md), [SetSizeLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/setsizelimits.md), [TextInput](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/textinput.md)
