# GH_CursorServer class

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

```cs
public sealed class GH_CursorServer
```

Class used to cache and set cursors.

## Properties

- [Count](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-cursorserver/count.md): Gets the number of cached cursors.

## Methods

- [AttachCursor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-cursorserver/attachcursor.md): Attach a cursor to a control.
- [Cursor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-cursorserver/cursor.md): Gets a cursor from the cache.
- [IsCursor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-cursorserver/iscursor.md): Test for the existence of a cursor.
- [ReferenceCursors](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-cursorserver/referencecursors.md): Reference all the cursor files in a given directory.
- [ResetCursor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-cursorserver/resetcursor.md): Reset the cursor of the given control to default.
