Class LogBox
Provides thread-safe logging to a text box.
public static class LogBox
- Inheritance
-
LogBox
- Inherited Members
Properties
IsInitialized
Returns true if this class has been initialized via Initialize
public static bool IsInitialized { get; }
Property Value
MaxLength
Maximum number of characters kept in the text box.
public static int MaxLength { get; set; }
Property Value
Methods
Append(string)
Appends text in the box, in the last existing text line, if any.
public static void Append(string Text)
Parameters
TextstringThe text to append.
AppendLine()
Appends a separator line in the box.
public static void AppendLine()
AppendLine(DataRow)
Appends a new text line with serialized row values.
public static void AppendLine(DataRow Row)
Parameters
RowDataRowThe data row.
AppendLine(Exception)
Appends a new text line in the box based on an Exception.
public static void AppendLine(Exception ex)
Parameters
exExceptionThe exception.
AppendLine(object)
Appends a new text line with serialized data.
public static void AppendLine(object Data)
Parameters
DataobjectThe data to serialize and append.
AppendLine(string)
Appends a new text line in the box.
public static void AppendLine(string Text)
Parameters
TextstringThe text to append.
AppendLineEmpty()
Appends a new empty text line in the box.
public static void AppendLineEmpty()
Clear()
Clears the box in a thread-safe manner.
public static void Clear()
Initialize(TextBox)
Initializes this class.
public static void Initialize(TextBox Box)
Parameters
BoxTextBoxThe target text box.