# SelectionResult class

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class SelectionResult
```

List of all (de)selected objects and wires during a picking or selection operation.

## Constructors

- [SelectionResult](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/ctor.md): Construct an empty selection result.

## Properties

- [DeselectedCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/deselectedcount.md): Gets the number of objects that were deselected by this operation.
- [DeselectedObjectCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/deselectedobjectcount.md)
- [DeselectedWireCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/deselectedwirecount.md)
- [Document](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/document.md): Gets the document this selection esult is tied to.
- [InletUnderPick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/inletunderpick.md): Gets the Instance ID of the parameter whose inlet was underneath the pick location. If no inlet was picked this will return Guid.Empty.
- [Kind](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/kind.md): Gets the pick kind.
- [ObjectUnderPick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/objectunderpick.md): Gets the Instance ID of the object underneath the pick location. If no object was picked this will return Guid.Empty.
- [OutletUnderPick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/outletunderpick.md): Gets the Instance ID of the parameter whose inlet was underneath the pick location. If no outlet was picked this will return Guid.Empty.
- [Point](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/point.md): Gets the origin point, if any, for this pick.
- [SelectedCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/selectedcount.md): Gets the number of objects that were selected by this operation. This is not the same as the total number of selected objects.
- [SelectedObjectCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/selectedobjectcount.md)
- [SelectedWireCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/selectedwirecount.md)
- [WireUnderPick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/wireunderpick.md): Gets the Instance IDs of the source and target parameters of the wire underneath the pick location. If no wire was picked this will return WireEnds.Empty.

## Methods

- [Merge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/merge.md): Merge the selected and deselected states of another result into this one.
- [SetPickedInlet](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/setpickedinlet.md): Set the parameter inlet directly under the pick.
- [SetPickedObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/setpickedobject.md): Set the object directly under the pick.
- [SetPickedOutlet](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/setpickedoutlet.md): Set the parameter outlet directly under the pick.
- [SetPickedWire](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/setpickedwire.md): Set the wire directly under the pick.
- [UnsetIfNotOnGroupBorder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.selectionresult/unsetifnotongroupborder.md): If this selection result points to a [GroupObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.specialobjects.groupobject.md), but the picking point is not on the group dragging boundary, unset the result.
