# BracketFragment class

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

```cs
public sealed class BracketFragment : Fragment
```

One side of a bracket pair. Pairing is by nesting position only; the most recent unclosed bracket is matched regardless of shape.

## Properties

- [Depth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/depth.md): Gets how many bracket pairs enclose this one.
- [Interior](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/interior.md): Gets a view of the fragments enclosed by this pair, excluding the brackets themselves. Null when this bracket has no [BracketFragment.Partner](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/partner.md).
- [IsOpening](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/isopening.md): Gets whether this is the opening side.
- [Kind](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/kind.md): Gets the category of this fragment.
- [Partner](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/partner.md): Gets the other side of this pair, or null when this bracket is unmatched, or when the view it belongs to contains only one side of the pair.
- [Shape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.bracketfragment/shape.md): Gets the shape of this bracket.

## Inherited Members

- From [Fragment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment.md): [After](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/after.md), [Defect](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/defect.md), [Length](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/length.md), [Next](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/next.md), [NextMeaningful](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/nextmeaningful.md), [Prev](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/prev.md), [PrevMeaningful](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/prevmeaningful.md), [Start](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/start.md), [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/text.md), [IsAdjacentTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/isadjacentto.md), [IsAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/isall.md), [IsAny](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/isany.md), [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.fragment/tostring.md)
