# ShapeFile class

Namespace: [Grasshopper2.FileTypes.ESRI](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.filetypes.esri.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class ShapeFile
```

Represents the contents of ESRI shape file data.

## Constructors

- [ShapeFile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/ctor.md): Create a new shapefile instance from an actual shape file.

## Properties

- [FileCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/filecode.md): Gets the file code as specified by the file. Should typically be 9994.
- [FileLength](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/filelength.md): Gets the length of the file in bytes. This data is self-reported by the file and not derived from the actual file data.
- [FileVersion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/fileversion.md): Gets the version of the file. Should typically be 1000.
- [Shapes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/shapes.md): Gets a shape enumerator.
- [ShapeType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/shapetype.md): Gets the type of all shapes in this file.

## Methods

- [FindShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shapefile/findshape.md): Gets the shape with the given index.
