# Shape 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 abstract class Shape
```

Base class for all shape file records.

**Derived types:** [MultiPointShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.multipointshape.md), [NullShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.nullshape.md), [PointShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.pointshape.md), [PolygonShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.polygonshape.md), [PolylineShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.polylineshape.md)

## Constructors

- [Shape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/ctor.md): (2 overloads) Construct the base class from a reader object.

## Properties

- [BoundingBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/boundingbox.md): Gets the bounding box for this shape.
- [ContainsElevationData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/containselevationdata.md): Gets whether this shape contains any 3D data.
- [ContainsMeasurementData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/containsmeasurementdata.md): Gets whether this shape contains any measurement data.
- [ESRI_Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/esri-type.md): Gets the ESRI type code of the record in the shape file from which this shape was originally deserialized.
- [Index](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/index.md): Gets the shape index.
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/type.md): Gets the type of shape this record represents.

## Methods

- [AddToDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/addtodocument.md): Adds all shapes to a Rhino document.
- [TryParseRecord](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.esri.shape/tryparserecord.md): (static) Attempt to read a record from the stream.
