# PathMap class

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

```cs
public sealed class PathMap
```

A single path mapping operation.

## Properties

- [Cascade](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/cascade.md): Gets whether this mapping cascades from previous mappings.
- [HasItemIn](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/hasitemin.md): Gets whether this mapping has an ITEM identifier for the input.
- [HasItemOut](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/hasitemout.md): Gets whether this mapping has an ITEM expression for the output.
- [InputFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/inputformat.md): Gets the input format, including the item if defined.
- [MaximumLength](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/maximumlength.md): Gets the longest path that could possibly match this map. If the map contains sequence wildcards, the maximum length is always [int.MaxValue](https://learn.microsoft.com/dotnet/api/system.int32.maxvalue).
- [MinimumLength](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/minimumlength.md): Gets the shortest path that could possibly match this map.
- [OutputFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/outputformat.md): Gets the output format, including the item if defined.
- [PathInCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/pathincount.md): Gets the number of PATH input identifiers.
- [PathOutCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/pathoutcount.md): Gets the number of PATH output identifiers.

## Methods

- [Apply](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/apply.md): Apply this mapping to a path+item pair.
- [ItemInConstant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/iteminconstant.md): Gets whether the input item is a constant.
- [ItemInIdentifier](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/iteminidentifier.md): Gets the identifier of the input item.
- [ItemOutExpression](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/itemoutexpression.md): Gets the expression for the output index.
- [Matches](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/matches.md): (2 overloads) Test whether this mapping applies to a given path and item index.
- [PathInConstant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/pathinconstant.md): Gets whether the i-th input element is a constant.
- [PathInIdentifier](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/pathinidentifier.md): Gets the identifier associated with the i-th element in the input.
- [PathOutConstant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/pathoutconstant.md): Gets whether the i-th input element is a constant.
- [PathOutExpression](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/pathoutexpression.md): Gets the expression assigned to the i-th element in the output.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/tostring.md)
- [TryParse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pathmap/tryparse.md): (static) Parse a mapping notation.
