# SurfacePicker class

Namespace: [Grasshopper2.Parameters.Pickers](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.parameters.pickers.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class SurfacePicker : IDisposable
```

Picker class for various kinds of surfaces.

## Constructors

- [SurfacePicker](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/ctor.md)

## Properties

- [AllowMeshes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/allowmeshes.md): Gets whether this picker also allows meshes to be picked.
- [AllowMultiple](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/allowmultiple.md): Gets whether this picker allows only a single result, or many.
- [AllowSubObjects](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/allowsubobjects.md): Gets or sets whether faces in polysurfaces can be selected.
- [DefaultPrompt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/defaultprompt.md): Gets the default prompt.
- [Prompt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/prompt.md): Gets or sets the prompt override.

## Methods

- [Dispose](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/dispose.md)
- [Get](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/get.md)
- [ToTree](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pickers.surfacepicker/totree.md): Create a tree containing the collected surfaces.
