# Prose.MaskPattern class

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

```cs
public class Prose.MaskPattern
```

Defines a masking pattern.

## Properties

- [CsBlockComment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/csblockcomment.md): (static) Gets the masking pattern for C# block comments: /*...*/
- [CsCharLiteral](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/cscharliteral.md): (static) Gets the masking pattern for C# char literals.
- [CsInterpolation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/csinterpolation.md): (static) Gets the masking pattern for C# interpolated strings.
- [CsLineComment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/cslinecomment.md): (static) Gets the masking pattern for C# line comments: //...
- [CsStringLiteral](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/csstringliteral.md): (static) Gets the masking pattern for C# string literals.
- [CsVerbatimLiteral](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/csverbatimliteral.md): (static) Gets the masking pattern for C# verbatim strings.
- [CurlyBraces](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/curlybraces.md): (static) Gets the multi-line masking pattern for matched curly braces: {...}
- [Multiline](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/multiline.md): (3 overloads) Gets whether the pattern is automatically terminated at the end of a new line.
- [Parentheses](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/parentheses.md): (static) Gets the multi-line masking pattern for matched parentheses: (...)
- [SquareBrackets](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/squarebrackets.md): (static) Gets the multi-line masking pattern for matched square brackets: [...]
- [TrackDepth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/trackdepth.md): Gets whether the nesting of consecutive triggers is taken into account.
- [Trigger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/trigger.md): String that triggers this pattern.

## Methods

- [AsMultiLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/asmultiline.md): Gets this pattern in a single line flavour.
- [AsSingleLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/assingleline.md): Gets this pattern in a single line flavour.
- [EvaluateTerminus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/evaluateterminus.md): Start tracking a string until this pattern terminates.
- [EvaluateTrigger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/evaluatetrigger.md): Test whether a string matches the trigger of this pattern at the specified index.
- [ReplaceTrigger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/replacetrigger.md): Replace the trigger string in this pattern.
- [SingleLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/singleline.md): (3 overloads, static) Create a single-line pattern.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/tostring.md): Gets a vague description of this pattern. Doesn't show escapes or skips.
- [WithDepthTracking](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/withdepthtracking.md): Gets this pattern with trigger nesting enabled.
- [WithEscape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/withescape.md): Add an escape character to this pattern.
- [WithoutDepthTracking](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/withoutdepthtracking.md): Gets this pattern with trigger nesting disabled.
- [WithSkip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/withskip.md): Add a skipping string to this pattern.
- [WithTerminal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.maskpattern/withterminal.md): (2 overloads) Add a terminal character to this pattern.
