Class Output
Displays list of output messages during script debugging.
[ToolboxBitmap(typeof(Output), "Images.Output.Icon.bmp")]
public class Output : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
Output
- Implements
Examples
Here is how to declare a Output from the C# code:
using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI;
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var debugger = new ScriptDebugger();
var outputControl = new Output();
outputControl.Dock = System.Windows.Forms.DockStyle.Fill;
outputControl.Debugger = debugger;
}
}
Here is how to declare a Output from the Visual Basic code:
Imports System
Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim debugger = New ScriptDebugger()
Dim outputControl = New Output()
outputControl.Dock = Windows.Forms.DockStyle.Fill
outputControl.Debugger = debugger
End Sub
End Class
Remarks
Output is a visual control used to log debugger events or application-specific messages during script debugging.
The most important properties of the Output are:
The Debugger property specifies ScriptDebugger instance, which output messages are displayed by this user control.
The SelectedMessage property represents the currently selected message.
Constructors
- Output()
Initializes a new instance of the
Output
class with default settings.
Fields
Properties
- Debugger
Gets or sets
IScriptDebuggerBase
which output messages will be displayed by this user control.
- SelectedMessage
Gets currently selected message.
Methods
- Clear()
Clears output list.
- CustomLog(string)
Adds custom message to the output
- Dispose(bool)
Clean up any resources being used.
- ~Output()
Destroys the instance of the
Output
class.
- Localize()
Localizes string resources.