# BrepTrimList class

Namespace: [Rhino.Geometry.Collections](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.collections.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class BrepTrimList : IEnumerable<BrepTrim>
```

Provides access to all the Trims in a Brep object

## Properties

- [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/count.md): Gets the number of brep trims.

## Indexers

- [this[]](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/item.md): Gets the BrepTrim at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/add.md): (4 overloads) Add a new trim that will be part of an inner, outer, or slit loop to the brep
- [AddCurveOnFace](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/addcurveonface.md): Add a new curve on face to the brep
- [AddSingularTrim](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/addsingulartrim.md): Add a new singular trim to the brep.
- [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/getenumerator.md): Gets an enumerator that visits all edges.
- [MatchEnds](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/matchends.md): (4 overloads) Matches the endpoints of all trims in the Brep.
- [IEnumerable.GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/system-collections-ienumerable-getenumerator.md): Gets the same enumerator as [BrepTrimList.GetEnumerator()](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.collections.breptrimlist/getenumerator.md).
