# Map class

Namespace: [Grasshopper2.Data.Mapping](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.data.mapping.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[DebuggerDisplay("ToString()")]
public sealed class Map
```

Represents an individual map description. A map is a collection of path element and item index strings that mirrors path and item notation in data trees.

## Constructors

- [Map](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.map/ctor.md): (2 overloads)

## Properties

- [HasItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.map/hasitem.md): Gets wether or not an item mapping has been set.
- [Item](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.map/item.md): Gets the item mapping.
- [PathCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.map/pathcount.md): Gets the length of the path mapping.

## Methods

- [Path](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.map/path.md): Gets the path mapping for the specified index.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.mapping.map/tostring.md): Gets the string format of this map.
