ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Canvas/Canvas_HtmlText.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Text;

namespace Steema.TeeChart.Samples
{
  public class Canvas_HtmlText : BaseForm
  {
    private System.Windows.Forms.CheckBox checkBox1;
    private Styles.Bar bar1;
  
    public Canvas_HtmlText() : base()
    {
      InitializeComponent();
      InitializeChart();
    }

    private void InitializeChart()
    {
      bar1.FillSampleValues();
      bar1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Both;
      bar1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Both;

      string text = "Hello <b>World !</b>";

      tChart1.Axes.Left.Title.Caption = text;
      tChart1.Axes.Right.Title.Caption = text;
      tChart1.Axes.Top.Title.Caption = text;
      tChart1.Axes.Bottom.Title.Caption = text;

      tChart1.Axes.Left.Title.TextFormat = Steema.TeeChart.Drawing.TextFormat.Html;
      tChart1.Axes.Right.Title.TextFormat = Steema.TeeChart.Drawing.TextFormat.Html;
      tChart1.Axes.Top.Title.TextFormat = Steema.TeeChart.Drawing.TextFormat.Html;
      tChart1.Axes.Bottom.Title.TextFormat = Steema.TeeChart.Drawing.TextFormat.Html;

      tChart1.Axes.Left.Title.Transparent = false;
      tChart1.Axes.Right.Title.Transparent = false;
      tChart1.Axes.Top.Title.Transparent = false;
      tChart1.Axes.Bottom.Title.Transparent = false;
    }

    private void InitializeComponent()
    {
      this.bar1 = new Steema.TeeChart.Styles.Bar();
      this.checkBox1 = new System.Windows.Forms.CheckBox();
      this.panel1.SuspendLayout();
      this.chartContainer.SuspendLayout();
      this.SuspendLayout();
      // 
      // textBox1
      // 
      this.textBox1.Text = "The TextFormat property and enum allows for the use of some HTML tags in the text" +
    "\r\nof the base TextShape class.";
      // 
      // panel1
      // 
      this.panel1.Controls.Add(this.checkBox1);
      // 
      // tChart1
      // 

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。