# Editor.MapEditor.Selection

Current selection set for the active map

## Remarks

Currently this only supports [Editor.MapDoc.MapNode](/api/Editor.MapDoc.MapNode) selections.
There are selections of vertices, edges, faces too that would likely change this API

- Kind: class
- Namespace: `Editor.MapEditor`
- Assembly: `Sandbox.Tools`
- Modifiers: static, abstract, sealed

## Properties

- [`All`](/api/Editor.MapEditor.Selection/All): All the map nodes in the current selection set
- [`PivotPosition`](/api/Editor.MapEditor.Selection/PivotPosition): The position of the selection's pivot
- [`SelectMode`](/api/Editor.MapEditor.Selection/SelectMode): The current selection mode e.g Meshes or Objects

## Methods

- [`Add`](/api/Editor.MapEditor.Selection/Add): Add the map node to the current set
- [`Clear`](/api/Editor.MapEditor.Selection/Clear): Clear everything from the current selection set
- [`InvertSelection`](/api/Editor.MapEditor.Selection/InvertSelection): Invert the current selection
- [`Remove`](/api/Editor.MapEditor.Selection/Remove): Remove this map node from the current set if it exists
- [`SelectAll`](/api/Editor.MapEditor.Selection/SelectAll): Add all to the current selection
- [`Set`](/api/Editor.MapEditor.Selection/Set): Clear the current set, making the map node the only selected node
