# CommentFragment 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 CommentFragment : Fragment
```

An inline or block comment.

## Properties

- [ContainsLineBreak](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.commentfragment/containslinebreak.md): Gets whether this comment spans more than one line. Such comments are boundaries rather than trivia, since skipping one would silently cross a line break.
- [Content](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.commentfragment/content.md): Gets the comment text, without the delimiters.
- [IsBlock](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.commentfragment/isblock.md): Gets whether this is a block comment rather than an inline one.
- [Kind](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parsing.commentfragment/kind.md): Gets the category of this fragment.

## 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)
