예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                radioButtonOverFlowEllipsis.Checked = true;

                SetupDataGridView(ref dataGridView1);

                TheArtOfDev.HtmlRenderer.WinForms.HtmlLabel labelqwerty = new TheArtOfDev.HtmlRenderer.WinForms.HtmlLabel();
                labelqwerty.Text = "This is an <b>HtmlLabel</b> on transparent background with <span style=\"color: red\">colors</span> and links: HTML Renderer";
                labelqwerty.Dock = DockStyle.Fill;
                panel1.Controls.Add(labelqwerty);

                TheArtOfDev.HtmlRenderer.WinForms.HtmlPanel htmlPanel = new TheArtOfDev.HtmlRenderer.WinForms.HtmlPanel();
                htmlPanel.Text = "This is an <b>HtmlLabel</b> on transparent background with <span style=\"color: red\">colors</span> and links: HTML Renderer";
                htmlPanel.Dock = DockStyle.Fill;

                string tmp = htmlPanel.GetHtml();

                panel4.Controls.Add(htmlPanel);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                radioButtonOverFlowEllipsis.Checked = true;

                SetupDataGridView(ref dataGridView1);

                TheArtOfDev.HtmlRenderer.WinForms.HtmlLabel labelqwerty = new TheArtOfDev.HtmlRenderer.WinForms.HtmlLabel();
                labelqwerty.Text = "This is an <b>HtmlLabel</b> on transparent background with <span style=\"color: red\">colors</span> and links: HTML Renderer";
                labelqwerty.Dock = DockStyle.Fill;
                panel1.Controls.Add(labelqwerty);

                TheArtOfDev.HtmlRenderer.WinForms.HtmlPanel htmlPanel = new TheArtOfDev.HtmlRenderer.WinForms.HtmlPanel();
                htmlPanel.Text = "This is an <b>HtmlLabel</b> on transparent background with <span style=\"color: red\">colors</span> and links: HTML Renderer";
                htmlPanel.Dock = DockStyle.Fill;

                string tmp = htmlPanel.GetHtml();

                panel4.Controls.Add(htmlPanel);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

        }