/// <summary> /// Initializes the label to use to display RTF and plain text. /// </summary> private void InitializeRtfLabel() { if (m_aslRtfLabel != null) { return; } m_aslRtfLabel = new AutosizeLabel(); m_aslRtfLabel.Dock = DockStyle.Fill; m_aslRtfLabel.AllowSelection = AllowSelection; m_aslRtfLabel.Font = Font; m_aslRtfLabel.BackColor = BackColor; m_aslRtfLabel.ForeColor = ForeColor; m_aslRtfLabel.DetectUrls = DetectUrls; m_aslRtfLabel.ScrollBars = RichTextBoxScrollBars.Vertical; Controls.Add(m_aslRtfLabel); }
/// <summary> /// Initializes the label to use to display RTF and plain text. /// </summary> private void InitializeRtfLabel() { if (m_aslRtfLabel != null) return; m_aslRtfLabel = new AutosizeLabel(); m_aslRtfLabel.Dock = DockStyle.Fill; m_aslRtfLabel.AllowSelection = AllowSelection; m_aslRtfLabel.Font = Font; m_aslRtfLabel.BackColor = BackColor; m_aslRtfLabel.ForeColor = ForeColor; m_aslRtfLabel.DetectUrls = DetectUrls; m_aslRtfLabel.ScrollBars = RichTextBoxScrollBars.Vertical; Controls.Add(m_aslRtfLabel); }