/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.c1Chart3D1 = new C1.Win.C1Chart3D.C1Chart3D(); this.panel1 = new System.Windows.Forms.Panel(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.rbSurface = new System.Windows.Forms.RadioButton(); this.rbBar = new System.Windows.Forms.RadioButton(); this.pgConStyle = new System.Windows.Forms.PropertyGrid(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.rbConRandom = new System.Windows.Forms.RadioButton(); this.rbConWaves = new System.Windows.Forms.RadioButton(); this.rbConSphere = new System.Windows.Forms.RadioButton(); this.rbConNone = new System.Windows.Forms.RadioButton(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.rbWave = new System.Windows.Forms.RadioButton(); this.rbSphere = new System.Windows.Forms.RadioButton(); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuFileExit = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuHelpAbout = new System.Windows.Forms.MenuItem(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D1)).BeginInit(); this.panel1.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // c1Chart3D1 // this.c1Chart3D1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.c1Chart3D1.Location = new System.Drawing.Point(204, 0); this.c1Chart3D1.Name = "c1Chart3D1"; this.c1Chart3D1.PropBag = "<?xml version=\"1.0\"?><Chart3DPropBag Version=\"\"><AxisX /><AxisY /><AxisZ /><Chart" + "GroupsCollection><Chart3DGroup ChartType=\"Surface\"><Elevation><SurfaceTopColor>W" + "hite</SurfaceTopColor><SurfaceBottomColor>DarkGray</SurfaceBottomColor></Elevati" + "on><ChartData><Set type=\"Chart3DDataSetGrid\" RowOrigin=\"0\" RowDelta=\"1\" RowCount" + "=\"11\" ColumnCount=\"11\" ColumnDelta=\"1\" ColumnOrigin=\"0\" Hole=\"3.40282347E+38\"><D" + "ata>4.5 3.6 2.89999986 2.39999986 2.1 1.99999988 2.1 2.39999986 2.89999986 3.6 4" + ".5 8.1 7.2 6.5 6 5.7 5.6 5.7 6 6.5 7.2 8.1 10.9 10 9.3 8.8 8.5 8.4 8.5 8.8 9.3 1" + "0 10.9 12.9 12 11.3 10.8 10.5 10.4 10.5 10.8 11.3 12 12.9 14.1 13.2 12.5 12 11.7" + " 11.6 11.7 12 12.5 13.2 14.1 14.5 13.6 12.9 12.4 12.1 12 12.1 12.4 12.9 13.6 14." + "5 14.1 13.2 12.5 12 11.7 11.6 11.7 12 12.5 13.2 14.1 12.9 12 11.3 10.8 10.5 10.4" + " 10.5 10.8 11.3 12 12.9 10.9 10 9.3 8.8 8.5 8.4 8.5 8.8 9.3 10 10.9 8.1 7.2 6.5 " + "6 5.7 5.6 5.7 6 6.5 7.2 8.1 4.5 3.6 2.89999986 2.39999986 2.1 1.99999988 2.1 2.3" + "9999986 2.89999986 3.6 4.5 </Data></Set></ChartData><Bar /><Surface /><Contour I" + "sZoned=\"True\" NumLevels=\"25\" /></Chart3DGroup></ChartGroupsCollection><ChartStyl" + "es><Chart3DStyle><LineStyle Color=\"Black\" Pattern=\"Solid\" Thickness=\"0\" /><Symbo" + "lStyle Color=\"Coral\" Shape=\"Box\" Size=\"5\" /></Chart3DStyle></ChartStyles><Contou" + "rStyles ColorSet=\"RevRainbow\" /><LegendData Compass=\"East\" /><StyleCollection><N" + "amedStyle Name=\"Legend\" ParentName=\"Legend.default\" StyleData=\"\" /><NamedStyle N" + "ame=\"Footer\" ParentName=\"Control\" StyleData=\"\" /><NamedStyle Name=\"Area\" ParentN" + "ame=\"Area.default\" StyleData=\"Border=Empty,Black,1;\" /><NamedStyle Name=\"Control" + "\" ParentName=\"Control.default\" StyleData=\"Border=Solid,Black,1;\" /><NamedStyle N" + "ame=\"LabelStyleDefault\" ParentName=\"Control\" StyleData=\"BackColor=Transparent;\" " + "/><NamedStyle Name=\"Legend.default\" ParentName=\"Control\" StyleData=\"Wrap=False;A" + "lignVert=Top;\" /><NamedStyle Name=\"Header\" ParentName=\"Control\" StyleData=\"\" /><" + "NamedStyle Name=\"Control.default\" ParentName=\"\" StyleData=\"ForeColor=ControlText" + ";BackColor=Control;\" /><NamedStyle Name=\"Area.default\" ParentName=\"Control\" Styl" + "eData=\"AlignVert=Top;\" /></StyleCollection><FooterData Compass=\"South\" /><View I" + "sInteractive=\"True\" AxisTitleFont=\"Microsoft Sans Serif, 12world\" AxisFont=\"Micr" + "osoft Sans Serif, 10world\"><Ceiling /><Floor /></View><HeaderData Compass=\"North" + "\" /></Chart3DPropBag>"; this.c1Chart3D1.Size = new System.Drawing.Size(388, 403); this.c1Chart3D1.TabIndex = 0; // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.groupBox3, this.pgConStyle, this.groupBox2, this.groupBox1 }); this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(200, 403); this.panel1.TabIndex = 1; // // groupBox3 // this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] { this.rbSurface, this.rbBar }); this.groupBox3.Location = new System.Drawing.Point(8, 8); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(184, 48); this.groupBox3.TabIndex = 4; this.groupBox3.TabStop = false; this.groupBox3.Text = "Chart Type"; // // rbSurface // this.rbSurface.Location = new System.Drawing.Point(104, 16); this.rbSurface.Name = "rbSurface"; this.rbSurface.Size = new System.Drawing.Size(72, 24); this.rbSurface.TabIndex = 1; this.rbSurface.Text = "Surface"; this.rbSurface.CheckedChanged += new System.EventHandler(this.rbSurface_CheckedChanged); // // rbBar // this.rbBar.Location = new System.Drawing.Point(8, 16); this.rbBar.Name = "rbBar"; this.rbBar.Size = new System.Drawing.Size(40, 24); this.rbBar.TabIndex = 0; this.rbBar.Text = "Bar"; this.rbBar.CheckedChanged += new System.EventHandler(this.rbBar_CheckedChanged); // // pgConStyle // this.pgConStyle.CommandsVisibleIfAvailable = true; this.pgConStyle.HelpVisible = false; this.pgConStyle.LargeButtons = false; this.pgConStyle.LineColor = System.Drawing.SystemColors.ScrollBar; this.pgConStyle.Location = new System.Drawing.Point(8, 184); this.pgConStyle.Name = "pgConStyle"; this.pgConStyle.PropertySort = System.Windows.Forms.PropertySort.Alphabetical; this.pgConStyle.Size = new System.Drawing.Size(184, 56); this.pgConStyle.TabIndex = 3; this.pgConStyle.Text = "propertyGrid1"; this.pgConStyle.ToolbarVisible = false; this.pgConStyle.ViewBackColor = System.Drawing.SystemColors.Window; this.pgConStyle.ViewForeColor = System.Drawing.SystemColors.WindowText; // // groupBox2 // this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] { this.rbConRandom, this.rbConWaves, this.rbConSphere, this.rbConNone }); this.groupBox2.Location = new System.Drawing.Point(104, 56); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(88, 120); this.groupBox2.TabIndex = 2; this.groupBox2.TabStop = false; this.groupBox2.Text = "Contour Data"; // // rbConRandom // this.rbConRandom.Location = new System.Drawing.Point(8, 88); this.rbConRandom.Name = "rbConRandom"; this.rbConRandom.Size = new System.Drawing.Size(68, 24); this.rbConRandom.TabIndex = 3; this.rbConRandom.Text = "Random"; this.rbConRandom.CheckedChanged += new System.EventHandler(this.rbConRandom_CheckedChanged); // // rbConWaves // this.rbConWaves.Location = new System.Drawing.Point(8, 64); this.rbConWaves.Name = "rbConWaves"; this.rbConWaves.Size = new System.Drawing.Size(64, 24); this.rbConWaves.TabIndex = 2; this.rbConWaves.Text = "Waves"; this.rbConWaves.CheckedChanged += new System.EventHandler(this.rbConWaves_CheckedChanged); // // rbConSphere // this.rbConSphere.Location = new System.Drawing.Point(8, 40); this.rbConSphere.Name = "rbConSphere"; this.rbConSphere.Size = new System.Drawing.Size(64, 24); this.rbConSphere.TabIndex = 1; this.rbConSphere.Text = "Sphere"; this.rbConSphere.CheckedChanged += new System.EventHandler(this.rbConSphere_CheckedChanged); // // rbConNone // this.rbConNone.Location = new System.Drawing.Point(8, 16); this.rbConNone.Name = "rbConNone"; this.rbConNone.Size = new System.Drawing.Size(56, 24); this.rbConNone.TabIndex = 0; this.rbConNone.Text = "None"; this.rbConNone.CheckedChanged += new System.EventHandler(this.rbConNone_CheckedChanged); // // groupBox1 // this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] { this.rbWave, this.rbSphere }); this.groupBox1.Location = new System.Drawing.Point(8, 56); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(96, 72); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; this.groupBox1.Text = "Elevation Data"; // // rbWave // this.rbWave.Location = new System.Drawing.Point(8, 40); this.rbWave.Name = "rbWave"; this.rbWave.Size = new System.Drawing.Size(64, 24); this.rbWave.TabIndex = 1; this.rbWave.Text = "Waves"; // // rbSphere // this.rbSphere.Location = new System.Drawing.Point(8, 16); this.rbSphere.Name = "rbSphere"; this.rbSphere.Size = new System.Drawing.Size(64, 24); this.rbSphere.TabIndex = 0; this.rbSphere.Text = "Sphere"; this.rbSphere.CheckedChanged += new System.EventHandler(this.rbSphere_CheckedChanged); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem3 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuFileExit }); this.menuItem1.Text = "&File"; // // menuFileExit // this.menuFileExit.Index = 0; this.menuFileExit.Text = "E&xit"; this.menuFileExit.Click += new System.EventHandler(this.menuFileExit_Click); // // menuItem3 // this.menuItem3.Index = 1; this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuHelpAbout }); this.menuItem3.Text = "&Help"; // // menuHelpAbout // this.menuHelpAbout.Index = 0; this.menuHelpAbout.Text = "&About"; this.menuHelpAbout.Click += new System.EventHandler(this.menuHelpAbout_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(592, 403); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel1, this.c1Chart3D1 }); this.Menu = this.mainMenu1; this.MinimumSize = new System.Drawing.Size(300, 308); this.Name = "Form1"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "ComponentOne Chart for .NET 3D - 4D Chart Demo"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D1)).EndInit(); this.panel1.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.c1Chart1 = new C1.Win.C1Chart.C1Chart(); this.c1Chart2 = new C1.Win.C1Chart.C1Chart(); this.c1Chart3 = new C1.Win.C1Chart.C1Chart(); this.c1Chart5 = new C1.Win.C1Chart.C1Chart(); this.c1Chart6 = new C1.Win.C1Chart.C1Chart(); this.c1Chart4 = new C1.Win.C1Chart.C1Chart(); this.c1Chart7 = new C1.Win.C1Chart.C1Chart(); this.c1Chart8 = new C1.Win.C1Chart.C1Chart(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.c1Chart3D1 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D2 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D3 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D4 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D6 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D5 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D7 = new C1.Win.C1Chart3D.C1Chart3D(); this.c1Chart3D8 = new C1.Win.C1Chart3D.C1Chart3D(); this.button1 = new System.Windows.Forms.Button(); this._c1pdf = new C1.C1Pdf.C1PdfDocument(); this.label1 = new System.Windows.Forms.Label(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart8)).BeginInit(); this.tabPage2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D8)).BeginInit(); this.SuspendLayout(); // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Location = new System.Drawing.Point(10, 9); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(670, 406); this.tabControl1.TabIndex = 0; // // tabPage1 // this.tabPage1.Controls.Add(this.c1Chart1); this.tabPage1.Controls.Add(this.c1Chart2); this.tabPage1.Controls.Add(this.c1Chart3); this.tabPage1.Controls.Add(this.c1Chart5); this.tabPage1.Controls.Add(this.c1Chart6); this.tabPage1.Controls.Add(this.c1Chart4); this.tabPage1.Controls.Add(this.c1Chart7); this.tabPage1.Controls.Add(this.c1Chart8); this.tabPage1.Location = new System.Drawing.Point(4, 25); this.tabPage1.Name = "tabPage1"; this.tabPage1.Size = new System.Drawing.Size(662, 377); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "2D Charts"; // // c1Chart1 // this.c1Chart1.Location = new System.Drawing.Point(10, 9); this.c1Chart1.Name = "c1Chart1"; this.c1Chart1.PropBag = resources.GetString("c1Chart1.PropBag"); this.c1Chart1.Size = new System.Drawing.Size(182, 176); this.c1Chart1.TabIndex = 0; // // c1Chart2 // this.c1Chart2.Location = new System.Drawing.Point(192, 9); this.c1Chart2.Name = "c1Chart2"; this.c1Chart2.PropBag = resources.GetString("c1Chart2.PropBag"); this.c1Chart2.Size = new System.Drawing.Size(182, 176); this.c1Chart2.TabIndex = 0; // // c1Chart3 // this.c1Chart3.Location = new System.Drawing.Point(374, 9); this.c1Chart3.Name = "c1Chart3"; this.c1Chart3.PropBag = resources.GetString("c1Chart3.PropBag"); this.c1Chart3.Size = new System.Drawing.Size(183, 176); this.c1Chart3.TabIndex = 0; // // c1Chart5 // this.c1Chart5.Location = new System.Drawing.Point(10, 194); this.c1Chart5.Name = "c1Chart5"; this.c1Chart5.PropBag = resources.GetString("c1Chart5.PropBag"); this.c1Chart5.Size = new System.Drawing.Size(182, 175); this.c1Chart5.TabIndex = 0; // // c1Chart6 // this.c1Chart6.Location = new System.Drawing.Point(192, 194); this.c1Chart6.Name = "c1Chart6"; this.c1Chart6.PropBag = resources.GetString("c1Chart6.PropBag"); this.c1Chart6.Size = new System.Drawing.Size(182, 175); this.c1Chart6.TabIndex = 0; // // c1Chart4 // this.c1Chart4.Location = new System.Drawing.Point(374, 194); this.c1Chart4.Name = "c1Chart4"; this.c1Chart4.PropBag = resources.GetString("c1Chart4.PropBag"); this.c1Chart4.Size = new System.Drawing.Size(183, 175); this.c1Chart4.TabIndex = 0; // // c1Chart7 // this.c1Chart7.Location = new System.Drawing.Point(557, 194); this.c1Chart7.Name = "c1Chart7"; this.c1Chart7.PropBag = resources.GetString("c1Chart7.PropBag"); this.c1Chart7.Size = new System.Drawing.Size(182, 175); this.c1Chart7.TabIndex = 0; // // c1Chart8 // this.c1Chart8.Location = new System.Drawing.Point(557, 9); this.c1Chart8.Name = "c1Chart8"; this.c1Chart8.PropBag = resources.GetString("c1Chart8.PropBag"); this.c1Chart8.Size = new System.Drawing.Size(182, 176); this.c1Chart8.TabIndex = 0; // // tabPage2 // this.tabPage2.Controls.Add(this.c1Chart3D1); this.tabPage2.Controls.Add(this.c1Chart3D2); this.tabPage2.Controls.Add(this.c1Chart3D3); this.tabPage2.Controls.Add(this.c1Chart3D4); this.tabPage2.Controls.Add(this.c1Chart3D6); this.tabPage2.Controls.Add(this.c1Chart3D5); this.tabPage2.Controls.Add(this.c1Chart3D7); this.tabPage2.Controls.Add(this.c1Chart3D8); this.tabPage2.Location = new System.Drawing.Point(4, 25); this.tabPage2.Name = "tabPage2"; this.tabPage2.Size = new System.Drawing.Size(761, 377); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "3D Charts"; // // c1Chart3D1 // this.c1Chart3D1.Location = new System.Drawing.Point(10, 9); this.c1Chart3D1.Name = "c1Chart3D1"; this.c1Chart3D1.PropBag = resources.GetString("c1Chart3D1.PropBag"); this.c1Chart3D1.Size = new System.Drawing.Size(182, 176); this.c1Chart3D1.TabIndex = 0; // // c1Chart3D2 // this.c1Chart3D2.Location = new System.Drawing.Point(192, 9); this.c1Chart3D2.Name = "c1Chart3D2"; this.c1Chart3D2.PropBag = resources.GetString("c1Chart3D2.PropBag"); this.c1Chart3D2.Size = new System.Drawing.Size(182, 176); this.c1Chart3D2.TabIndex = 0; // // c1Chart3D3 // this.c1Chart3D3.Location = new System.Drawing.Point(374, 9); this.c1Chart3D3.Name = "c1Chart3D3"; this.c1Chart3D3.PropBag = resources.GetString("c1Chart3D3.PropBag"); this.c1Chart3D3.Size = new System.Drawing.Size(183, 176); this.c1Chart3D3.TabIndex = 0; // // c1Chart3D4 // this.c1Chart3D4.Location = new System.Drawing.Point(10, 194); this.c1Chart3D4.Name = "c1Chart3D4"; this.c1Chart3D4.PropBag = resources.GetString("c1Chart3D4.PropBag"); this.c1Chart3D4.Size = new System.Drawing.Size(182, 175); this.c1Chart3D4.TabIndex = 0; // // c1Chart3D6 // this.c1Chart3D6.Location = new System.Drawing.Point(192, 194); this.c1Chart3D6.Name = "c1Chart3D6"; this.c1Chart3D6.PropBag = resources.GetString("c1Chart3D6.PropBag"); this.c1Chart3D6.Size = new System.Drawing.Size(182, 175); this.c1Chart3D6.TabIndex = 0; // // c1Chart3D5 // this.c1Chart3D5.Location = new System.Drawing.Point(374, 194); this.c1Chart3D5.Name = "c1Chart3D5"; this.c1Chart3D5.PropBag = resources.GetString("c1Chart3D5.PropBag"); this.c1Chart3D5.Size = new System.Drawing.Size(183, 175); this.c1Chart3D5.TabIndex = 0; // // c1Chart3D7 // this.c1Chart3D7.Location = new System.Drawing.Point(557, 9); this.c1Chart3D7.Name = "c1Chart3D7"; this.c1Chart3D7.PropBag = resources.GetString("c1Chart3D7.PropBag"); this.c1Chart3D7.Size = new System.Drawing.Size(182, 176); this.c1Chart3D7.TabIndex = 0; // // c1Chart3D8 // this.c1Chart3D8.Location = new System.Drawing.Point(557, 194); this.c1Chart3D8.Name = "c1Chart3D8"; this.c1Chart3D8.PropBag = resources.GetString("c1Chart3D8.PropBag"); this.c1Chart3D8.Size = new System.Drawing.Size(182, 175); this.c1Chart3D8.TabIndex = 0; // // button1 // this.button1.Location = new System.Drawing.Point(10, 425); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(153, 37); this.button1.TabIndex = 1; this.button1.Text = "Create PDF"; this.button1.Click += new System.EventHandler(this.button1_Click); // // _c1pdf // this._c1pdf.Security.OwnerPassword = "******"; // // label1 // this.label1.Location = new System.Drawing.Point(182, 434); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(576, 18); this.label1.TabIndex = 2; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(689, 476); this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Controls.Add(this.tabControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Charts in PDF"; this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.c1Chart1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart8)).EndInit(); this.tabPage2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Chart3D8)).EndInit(); this.ResumeLayout(false); }
public ContourProperties(C1.Win.C1Chart3D.C1Chart3D chart) { _chart = chart; }
private void button1_Click(object sender, System.EventArgs e) { // start document _c1pdf.Clear(); _c1pdf.Security.AllowPrint = false; //_c1pdf.Security.UserPassword = "******"; //_c1pdf.Landscape = true; // build page and chart rectangles RectangleF rcPage = _c1pdf.PageRectangle; rcPage.Inflate(-60, -72); rcPage.X = 72; RectangleF rcChart = new RectangleF(rcPage.X, rcPage.Y, 160, 160); // show title Font font = new Font("Tahoma", 16, FontStyle.Bold); string text = "Pdf charts created with the C1Chart control."; RectangleF rc = rcPage; rc.Y = rcPage.Y - 24; _c1pdf.DrawString(text, font, Brushes.DarkGray, rc); // scan controls on the selected tab page and render charts foreach (Control c in tabControl1.SelectedTab.Controls) { // skip invisible controls if (!c.Visible) { continue; } // get chart control C1.Win.C1Chart.C1Chart c2d = c as C1.Win.C1Chart.C1Chart; C1.Win.C1Chart3D.C1Chart3D c3d = c as C1.Win.C1Chart3D.C1Chart3D; // get metafile from chart control label1.Text = string.Format("Getting image from {0}...", c.Name); label1.Update(); Metafile meta = null; if (c2d != null) { meta = (Metafile)c2d.GetImage(); } if (c3d != null) { meta = (Metafile)c3d.GetImage(); } // make sure we got the metafile if (meta == null) { continue; } // draw it, frame it, and move on label1.Text = string.Format("Exporting {0}...", c.Name); label1.Update(); _c1pdf.DrawImage(meta, rcChart); _c1pdf.DrawRectangle(Pens.SteelBlue, rcChart); rcChart = NextChartRect(rcChart, rcPage); } label1.Text = string.Empty; // save document and show it string tempdir = Application.ExecutablePath.Substring(0, Application.ExecutablePath.LastIndexOf("\\") + 1); string fileName = string.Format(tempdir + @"{0}.pdf", tabControl1.SelectedTab.Text); _c1pdf.Save(fileName); Process.Start(fileName); }