# GH_PluginUtil class

Namespace: [Grasshopper.Plugin](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.plugin.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public sealed class GH_PluginUtil
```

Grasshopper plugin utility class. This class exports some static (Shared in VB) methods to do with plugin loading and unloading.

## Methods

- [BringRhinoToTop](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/bringrhinototop.md): (static) Bring the Rhino window to the top of the stack.
- [BringWindowToTop](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/bringwindowtotop.md): (static)
- [FocusOnRhino](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/focusonrhino.md): (static) Set the focus to the Rhino command line.
- [LoadGrasshopper](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/loadgrasshopper.md): (static) Performs all steps required during Grasshopper loading. If this function returns false, the plugin should not be allowed to load.
- [SaveSettings](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/savesettings.md): (static) Forces all runtime settings to be saved to the disk.
- [SendKeyCodeToRhino](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/sendkeycodetorhino.md): (3 overloads, static) Send a key-code to the Rhino command line.
- [SendMessage](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/sendmessage.md): (static)
- [SetFocus](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/setfocus.md): (static)
- [UnloadGrasshopper](https://developer.rhino3d.com/api/gh1/type/grasshopper.plugin.gh-pluginutil/unloadgrasshopper.md): (static) Performs all steps required during Grasshopper unloading.
