# TextLog class

Namespace: [Rhino.FileIO](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.fileio.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class TextLog : IDisposable
```

Used for collecting text data

## Constructors

- [TextLog](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/ctor.md): (3 overloads) Creates a text log that stores all text in memory. Use ToString on this version of the TextLog to get the text that we written

## Finalizer

- [~TextLog](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [IndentSize](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/indentsize.md): 0: one tab per indent. >0: number of spaces per indent

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/dispose.md): (2 overloads) Actively reclaims unmanaged resources that this instance uses.
- [NewCommandLine](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/newcommandline.md): (static) Returns a reference to a TextLog that prints to the Rhino command line. Each new command line reference holds its own indents.
- [PopIndent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/popindent.md): Decrease the indentation level
- [Print](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/print.md): (3 overloads) Send formatted text to the text log
- [PrintWrappedText](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/printwrappedtext.md): Send text wrapped at a set line length
- [PushIndent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/pushindent.md): Increase the indentation level
- [ResetString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/resetstring.md): If the TextLog was constructed using the empty constructor, then the text information is stored in a runtime string. This function resets the data held by the string, but retains the strings allocated memory to allow for quicker logging because the stored string doesn't constantly need to reallocate.
- [ToString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.textlog/tostring.md): If the TextLog was constructed using the empty constructor, then the text information is stored in a runtime string. The contents of this string is retrieved using ToString for this case
