# LabelCoverage class

Namespace: [Grasshopper2.UI.Grid](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.grid.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class LabelCoverage
```

Provides methods for populating a region with non-overlapping labels.

## Constructors

- [LabelCoverage](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/ctor.md): Create a new empty coverage set.

## Properties

- [Boxes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/boxes.md): Enumerate over all boxes.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/count.md): Gets the number of labels in this coverage.
- [FadeEnd](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/fadeend.md): Gets or sets the spacing between labels at which point they become completely transparent.
- [FadeStart](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/fadestart.md): Gets or sets the spacing at which labels begin to fade to transparency.

## Methods

- [CoincidentLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/coincidentlabel.md): Test whether a point is on top of one of the labels.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/draw.md): Render all labels in this coverage to a graphics context.
- [Inject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/inject.md): Try to inject an existing label into the coverage.
- [LocalSpacing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/localspacing.md): (2 overloads) Compute the local spacing, ie. the distance to the nearest object.
- [NearestLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/nearestlabel.md): Find the nearest label to a point.
- [ToBoxArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.grid.labelcoverage/toboxarray.md): Create an array containing all the boxes in this coverage.
