src/modules/previewpane/SvgPreviewHandler/SvgPreviewControl.cs
/// <summary>
/// Adds a Text Box in Controls for showing information about blocked elements.
/// </summary>
/// <param name="message">Message to be displayed in textbox.</param>
Adds a Text Box in Controls for showing information about blocked elements.
Adds a Text Box in Controls for showing information about blocked elements .
private void AddTextBoxControl(string message)
        {
            this.textBox = new RichTextBox();
            this.textBox.Text = message;
            this.textBox.BackColor = Color.LightYellow;
            this.textBox.Multiline = true;
            this.textBox.Dock = DockStyle.Top;
            this.textBox.ReadOnly = true;
            this.textBox.ContentsResized += this.RTBContentsResized;
            this.textBox.ScrollBars = RichTextBoxScrollBars.None;
            this.textBox.BorderStyle = BorderStyle.None;
            this.Controls.Add(this.textBox);
        }
private void AddTextBoxControl ( string message ) { this . textBox = new RichTextBox ( ) ; this . textBox . Text = message ; this . textBox . BackColor = Color . LightYellow ; this . textBox . Multiline = true ; this . textBox . Dock = DockStyle . Top ; this . textBox . ReadOnly = true ; this . textBox . ContentsResized += this . RTBContentsResized ; this . textBox . ScrollBars = RichTextBoxScrollBars . None ; this . textBox . BorderStyle = BorderStyle . None ; this . Controls . Add ( this . textBox ) ; }
Adds a Text Box in Controls for showing information about blocked elements.
Adds a Text Box in Controls for showing information about blocked elements .
message
string
Message to be displayed in textbox.
Message to be displayed in textbox .