ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/Pie_OtherLegend.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Pie_OtherLegend : Steema.TeeChart.Samples.BaseForm
{
private Steema.TeeChart.Styles.Pie pie1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button1;
private System.ComponentModel.IContainer components = null;
public Pie_OtherLegend()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
//add data
pie1.Add(134, "Google");
pie1.Add( 65, "Yahoo");
pie1.Add( 23, "AltaVista");
pie1.Add( 12, "AllTheWeb");
pie1.Add( 9, "Terra");
pie1.Add( 6, "Lycos");
pie1.Add( 3, "Ask Jeeves");
// prepare "Other" to group values below 10
pie1.OtherSlice.Style=Steema.TeeChart.Styles.PieOtherStyles.BelowValue;
pie1.OtherSlice.Value=10;
pie1.OtherSlice.Text = "Other";
pie1.OtherSlice.Legend.Visible = true;
pie1.OtherSlice.Legend.CustomPosition = true;
pie1.OtherSlice.Legend.Left = 475;
pie1.OtherSlice.Legend.Top = 150;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。