Constructors
public TextLog()
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
#~TextLog()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
Properties
Methods
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
Dispose
#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.
Parameters:
| disposing (bool) | true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer. |
Returns a reference to a TextLog that prints to the Rhino command line. Each new command line reference holds its own indents.
Remarks: All Print methods of this instance are guaranteed to be thread safe. Other methods are not guaranteed to be thread safe.
Send formatted text to the text log
Send formatted text to the text log
Send text to the text log
Parameters:
| text (string) |
Send text wrapped at a set line length
public void ResetString()
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
#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: Object.ToString