資源簡介
找了很多的ZedGraph.dll不是沒有破解的就是沒有右鍵的中文菜單。這個是根據論壇里面的例子生成的,漢化版本,和一個簡單的曲線應用例子。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?ZedGraph;
namespace?ZedGraphSample
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????CreateGraph(zg1);
????????????SetSize();
????????}
????????private?void?SetSize()
????????{
????????????zg1.Location?=?new?Point(10?10);
????????????//?Leave?a?small?margin?around?the?outside?of?the?control
????????????zg1.Size?=?new?Size(this.ClientRectangle.Width?-?20?this.ClientRectangle.Height?-?20);
????????}
????????private?void?CreateGraph(ZedGraphControl?zgc)
????????{
????????????GraphPane?myPane?=?zgc.GraphPane;
????????????//?Set?the?titles?and?axis?labels
????????????myPane.title.Text?=?“測試“;
????????????myPane.XAxis.title.Text?=?“X?Value“;
????????????myPane.YAxis.title.Text?=?“My?Y?Axis“;
????????????//?Make?up?some?data?points?from?the?Sine?function
????????????PointPairList?list?=?new?PointPairList();
????????????for?(double?x?=?0;?x?36;?x++)
????????????{
????????????????double?y?=?Math.Sin(x?*?Math.PI?/?15.0);
????????????????list.Add(x?y);
????????????}
????????????//?Generate?a?blue?curve?with?circle?symbols?and?“My?Curve?2“?in?the?legend
????????????LineItem?myCurve?=?myPane.AddCurve(“My?Curve“?list?Color.Black
????????????????????????????????????SymbolType.Circle);
????????????//?Fill?the?area?under?the?curve?with?a?white-red?gradient?at?45?degrees
????????????myCurve.Line.Fill?=?new?Fill(Color.White?Color.FromArgb(171?198?228)?45F);
????????????//?Make?the?symbols?opaque?by?filling?them?with?white
????????????myCurve.Symbol.Fill?=?new?Fill(Color.FromArgb(247?237?166));
????????????//?Fill?the?axis?background?with?a?color?gradient
????????????myPane.Chart.Fill?=?new?Fill(Color.White?Color.LightGoldenrodYellow?45F);
????????????//?Fill?the?pane?background?with?a?color?gradient
????????????myPane.Fill?=?new?Fill(Color.White?Color.FromArgb(220?220?255)?45F);
????????????//?Calculate?the?Axis?Scale?Ranges
????????????zgc.AxisChange();
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????333312??2011-12-08?13:18??ZedGraphSample\ZedGraphSample\bin\Debug\ZedGraph.dll
?????文件??????10240??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\bin\Debug\ZedGraphSample.exe
?????文件??????24064??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\bin\Debug\ZedGraphSample.pdb
?????文件??????14328??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\bin\Debug\ZedGraphSample.vshost.exe
?????文件????????490??2009-06-11?05:14??ZedGraphSample\ZedGraphSample\bin\Debug\ZedGraphSample.vshost.exe.manifest
?????文件???????2336??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\Form1.cs
?????文件???????3771??2011-12-08?13:50??ZedGraphSample\ZedGraphSample\Form1.Designer.cs
?????文件???????5814??2011-12-08?13:50??ZedGraphSample\ZedGraphSample\Form1.resx
?????文件???????5048??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ResolveAssemblyReference.cache
?????文件????????749??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ZedGraphSample.csproj.FileListAbsolute.txt
?????文件????????847??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ZedGraphSample.csproj.GenerateResource.Cache
?????文件??????10240??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ZedGraphSample.exe
?????文件????????180??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ZedGraphSample.Form1.resources
?????文件??????24064??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ZedGraphSample.pdb
?????文件????????180??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug\ZedGraphSample.Properties.Resources.resources
?????文件????????495??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\Program.cs
?????文件???????1360??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\Properties\AssemblyInfo.cs
?????文件???????2878??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\Properties\Resources.Designer.cs
?????文件???????5612??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\Properties\Resources.resx
?????文件???????1099??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\Properties\Settings.Designer.cs
?????文件????????249??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\Properties\Settings.settings
?????文件???????3876??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\ZedGraphSample.csproj
?????文件????????932??2011-12-08?13:48??ZedGraphSample\ZedGraphSample.sln
????..A..H.?????15872??2011-12-08?13:51??ZedGraphSample\ZedGraphSample.suo
?????目錄??????????0??2011-12-08?13:50??ZedGraphSample\ZedGraphSample\obj\Debug\Refactor
?????目錄??????????0??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\obj\Debug\TempPE
?????目錄??????????0??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\bin\Debug
?????目錄??????????0??2011-12-08?13:51??ZedGraphSample\ZedGraphSample\obj\Debug
?????目錄??????????0??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\bin
?????目錄??????????0??2011-12-08?13:48??ZedGraphSample\ZedGraphSample\obj
............此處省略6個文件信息
評論
共有 條評論