# DisplayCache class

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

```cs
public abstract class DisplayCache : IDisposable
```

An immutable collection of display shapes.

## Constructors

- [DisplayCache](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/ctor.md)

## Fields

- [_pixelScale](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/pixelscale.md)

## Properties

- [Clipping](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/clipping.md): Gets the clipping box of this cache.
- [ExpirationFactor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/expirationfactor.md): Gets a normalised factor for the expiration transition. Zero means expiration has not started yet, One means expiration has fully completed, any value in between indicates a partial transition.
- [HasFaces](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/hasfaces.md): Gets whether this cache has at least one face object to draw.
- [HasWires](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/haswires.md): Gets whether this cache has at least one wire object to draw.
- [Object](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/object.md): Gets the object which owns this cache.
- [Solution](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/solution.md): Gets the solution this cache is associated with.

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/create.md): (static)
- [Dispose](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/dispose.md)
- [DrawFaces](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/drawfaces.md): Method called when the face shapes need to be drawn in the viewport. Faces include shaded meshes, surfaces, breps, Sub-Ds, and so on.
- [DrawWires](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/drawwires.md): Method called when the wire shapes need to be drawn in the viewport. Wires include point symbols, curves, edges, texts, and so on.
- [Expire](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displaycache/expire.md): Expire this cache of display data. Typically you do not need to call this method. This cache will be automatically expired along with the IDocumentObject associated with it.
