Click or drag to resize

TextLog Class

Used for collecting text data
Inheritance Hierarchy
SystemObject
  Rhino.FileIOTextLog

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class TextLog : IDisposable

The TextLog type exposes the following members.

Constructors
  NameDescription
Public methodTextLog
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
Public methodTextLog(IntPtr)
Initializes a new instance of the TextLog class
Public methodTextLog(String)
Creates a text log that writes all text to a file. If no filename is provided, then text is written to StdOut
Top
Properties
  NameDescription
Public propertyIndentSize
0: one tab per indent. >0: number of spaces per indent
Top
Methods
  NameDescription
Public methodDispose
Actively reclaims unmanaged resources that this instance uses.
Protected methodDispose(Boolean)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNewCommandLine
Returns a reference to a TextLog that prints to the Rhino command line. Each new command line reference holds its own indents.
Public methodCode examplePopIndent
Decrease the indentation level
Public methodCode examplePrint(String)
Send text to the text log
Public methodPrint(String, Object)
Send formatted text to the text log
Public methodPrint(String, Object, Object)
Send formatted text to the text log
Public methodPrintWrappedText
Send text wrapped at a set line length
Public methodCode examplePushIndent
Increase the indentation level
Public methodToString
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
(Overrides ObjectToString.)
Top
See Also