ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Marks/Marks_PerPoint.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Marks_PerPoint : Samples.BaseForm
{
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label1;
private Steema.TeeChart.Styles.Pie pie1;
private System.ComponentModel.IContainer components = null;
public Marks_PerPoint()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
pie1.FillSampleValues();
// customize mark...
pie1.Marks.Items[3].Font.Size=14;
pie1.Marks.Items[3].Color=Color.Silver;
// customize another mark...
pie1.Marks.Items[5].Font.Size=12;
pie1.Marks.Items[5].Font.Color=Color.White;
pie1.Marks.Items[5].Color=Color.Navy;
pie1.Marks.Items[5].ShapeStyle=Drawing.TextShapeStyle.RoundRectangle;
pie1.Marks.Items[5].Shadow.Width=4;
pie1.Marks.Items[5].Shadow.Height=4;
pie1.Marks.Items[5].Shadow.Transparency=60;
pie1.Marks.Items[5].Shadow.Color=Color.DarkGray;
numericUpDown1.Maximum=pie1.Count-1;
label1.Text=pie1.Labels[Convert.ToInt16(numericUpDown1.Value)];
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。