# TwigFormatting class

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

```cs
public sealed class TwigFormatting
```

Contains properties for formatting twig content as string.

## Fields

- [DefaultIndexFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/defaultindexformat.md): (static) Gets the default index format.
- [DefaultMetaCountFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/defaultmetacountformat.md): (static) Gets the default meta data topology format.
- [DefaultMetaHintFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/defaultmetahintformat.md): (static) Gets the default meta data hinting format.
- [DefaultNullShortFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/defaultnullshortformat.md): (static) Gets the default format for short null codes.
- [DefaultNullWithTypeFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/defaultnullwithtypeformat.md): (static) Gets the default format for null entries with type.

## Properties

- [IncludeIndices](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/includeindices.md): Gets whether indices ought to be included.
- [IncludeMetaData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/includemetadata.md): Gets whether meta data ought to be included.
- [IncludeNullItems](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/includenullitems.md): Gets whether null items ought to be included.
- [Indentation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/indentation.md): Gets the number of spaces to use for indentations.
- [IndexFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/indexformat.md): Gets the formatting template for indices. A null or empty string means no indices will be included.
- [LeadingSpaces](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/leadingspaces.md): Gets the number of spaces to prepend to each formatted line.
- [MaximumLines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/maximumlines.md): Gets the maximum allowed number of individual lines.
- [MaximumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/maximumwidth.md): Gets the maximum number of characters per formatted line.
- [MetaFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/metaformat.md): Gets the formatting pattern for meta data. A null or empty string means meta data is not included in the formatting.
- [NullFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/nullformat.md): Gets the format pattern for null items. A null or empty string means nulls will be skipped entirely.
- [Style](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/style.md): Gets the formatting style.

## Methods

- [CreateArrayFormatting](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/createarrayformatting.md): (2 overloads, static) Create a new default formatting style used for set formatting.
- [CreateFullFormatting](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/createfullformatting.md): (static) Create a new formatting style used for exhaustive formatting.
- [CreateListFormatting](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/createlistformatting.md): (2 overloads, static) Create a new default formatting style used for list formatting.
- [CreateTopologicalFormatting](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/createtopologicalformatting.md): (static) Create a new default formatting style used for topological formatting.
- [WithAdditionalIndent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withadditionalindent.md): (2 overloads) Create a new formatting instance which is indented from the current one.
- [WithIndexing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withindexing.md): Set a new indexing format. An empty or null string will omit indexing from this formatting. Use '{0}' to insert the index value into the format.
- [WithMaximumLines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withmaximumlines.md): Change the maximum number of lines.
- [WithMaximumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withmaximumwidth.md): Change the maximum number of characters per line.
- [WithMetaData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withmetadata.md): Set a new meta data format. An empty or null string will omit meta data from this formatting. Use '{0}' to insert the meta data count into the format. Use '{1}' to insert comma separated meta data keys into the format. Use '{2}' to insert comma separated meta data keys-value pears into the format.
- [WithNulls](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withnulls.md): Set a new indexing format. An empty or null string will omit indexing from this formatting. Use '{0}' to insert the type name into the format.
- [WithoutIndexing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withoutindexing.md): Remove indexing from this formatting.
- [WithoutMetaData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withoutmetadata.md): Remove meta data from this formatting.
- [WithoutNulls](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withoutnulls.md): Remove null listing from this formatting.
- [WithWhitespace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.twigformatting/withwhitespace.md): Modify the whitespace properties of this formatting.
