# LightTable class

Namespace: [Rhino.DocObjects.Tables](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.tables.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class LightTable : RhinoDocCommonTable<LightObject>
```

## Properties

- [ComponentType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/componenttype.md)
- [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/count.md): Number of lights in the light table. Does not include Sun or Skylight.
- [DefaultLight](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/defaultlight.md): Gets the default light that Rhino uses when no other lights illuminate the scene.
- [Document](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/document.md): Document that owns this light table.
- [Skylight](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/skylight.md)
- [Sun](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/sun.md): Gets the Sun instance that is applied to the document. If the RDK is loaded, an instance is always returned.

## Indexers

- [this[]](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/item.md)

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/add.md): (2 overloads)
- [Delete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/delete.md): (2 overloads)
- [Find](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/find.md)
- [FindIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/findindex.md): Retrieves a object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
- [FindName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/findname.md): Finds the LightObject with a given name. Deleted lights have no name.
- [FindNameHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/findnamehash.md): Finds a LightObject given its name hash.
- [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/getenumerator.md)
- [Modify](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/modify.md): (2 overloads)
- [Undelete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.lighttable/undelete.md): Restores a light that has been deleted.

## Inherited Members

- From [CommonComponentTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1.md): [Clear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/clear.md), [FindId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/findid.md)
