Table of Contents

Class LogBox

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

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

bool

MaxLength

Maximum number of characters kept in the text box.

public static int MaxLength { get; set; }

Property Value

int

Methods

Append(string)

Appends text in the box, in the last existing text line, if any.

public static void Append(string Text)

Parameters

Text string

The 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

Row DataRow

The data row.

AppendLine(Exception)

Appends a new text line in the box based on an Exception.

public static void AppendLine(Exception ex)

Parameters

ex Exception

The exception.

AppendLine(object)

Appends a new text line with serialized data.

public static void AppendLine(object Data)

Parameters

Data object

The data to serialize and append.

AppendLine(string)

Appends a new text line in the box.

public static void AppendLine(string Text)

Parameters

Text string

The 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

Box TextBox

The target text box.