Table of Contents

Property SelectedMessage

Namespace
Alternet.Scripter.Debugger.UI.Wpf
Assembly
Alternet.Scripter.Debugger.UI.Wpf.v9.dll

SelectedMessage

Gets currently selected message.

public string SelectedMessage { get; }

Property Value

string

Examples

Here is how to use a SelectedMessage in the C# code:

using System;
using System.Windows;

using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI.Wpf;

public partial class MainWindow : Window
{
    private Output outputControl;

    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var debugger = new ScriptDebugger();

        outputControl = new Output();
        outputControl.Debugger = debugger;
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        MessageBox.Show(outputControl.SelectedMessage);
    }
}

Here is how to use a SelectedMessage in the Visual Basic code:

Imports System
Imports System.Windows

Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI.Wpf

Partial Public Class MainWindow
    Inherits Window
    Private outputControl As Output

    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim debugger = New ScriptDebugger()

        outputControl = New Output()
        outputControl.Debugger = debugger
    End Sub

    Private Sub Button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        MessageBox.Show(outputControl.SelectedMessage)
    End Sub
End Class

Remarks

The SelectedMessage property can be changed by clicking on the appropriate message in the log\console messages list displayed by this control.