///// <summary> ///// Clean up any resources being used. ///// </summary> ///// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> //protected override void Dispose(bool disposing) //{ // if (disposing && (components != null)) { // components.Dispose(); // } // base.Dispose(disposing); //} #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPrintObjectListView)); BrightIdeasSoftware.PenData penData1 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData1 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData2 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData2 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData3 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData3 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData4 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.LinearGradientBrushData linearGradientBrushData1 = new BrightIdeasSoftware.LinearGradientBrushData(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.cbListHeaderOnEveryPage = new System.Windows.Forms.CheckBox(); this.cbPrintSelection = new System.Windows.Forms.CheckBox(); this.cbShrinkToFit = new System.Windows.Forms.CheckBox(); this.cbUseGridLines = new System.Windows.Forms.CheckBox(); this.rbStyleModern = new System.Windows.Forms.RadioButton(); this.rbStyleMinimal = new System.Windows.Forms.RadioButton(); this.label6 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.tbWatermark = new System.Windows.Forms.TextBox(); this.tbFooter = new System.Windows.Forms.TextBox(); this.tbHeader = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.cmdPrint = new System.Windows.Forms.Button(); this.cmdPrintPreview = new System.Windows.Forms.Button(); this.cmdPageSetup = new System.Windows.Forms.Button(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.listViewPrinter1 = new BrightIdeasSoftware.ListViewPrinter(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.cmdRefresh = new System.Windows.Forms.Button(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox3.Controls.Add(this.radioButton3); this.groupBox3.Controls.Add(this.radioButton1); this.groupBox3.Controls.Add(this.radioButton2); this.groupBox3.Controls.Add(this.radioButton4); this.groupBox3.Location = new System.Drawing.Point(647, 222); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(95, 95); this.groupBox3.TabIndex = 5; this.groupBox3.TabStop = false; this.groupBox3.Text = "Magnification:"; // // radioButton3 // this.radioButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton3.AutoSize = true; this.radioButton3.Location = new System.Drawing.Point(15, 71); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(45, 17); this.radioButton3.TabIndex = 3; this.radioButton3.Text = "&50%"; this.radioButton3.UseVisualStyleBackColor = true; this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); // // radioButton1 // this.radioButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton1.AutoSize = true; this.radioButton1.Location = new System.Drawing.Point(15, 37); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(51, 17); this.radioButton1.TabIndex = 1; this.radioButton1.Text = "&200%"; this.radioButton1.UseVisualStyleBackColor = true; this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); // // radioButton2 // this.radioButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton2.AutoSize = true; this.radioButton2.Location = new System.Drawing.Point(15, 54); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(51, 17); this.radioButton2.TabIndex = 2; this.radioButton2.Text = "&100%"; this.radioButton2.UseVisualStyleBackColor = true; this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); // // radioButton4 // this.radioButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton4.AutoSize = true; this.radioButton4.Checked = true; this.radioButton4.Location = new System.Drawing.Point(15, 19); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(47, 17); this.radioButton4.TabIndex = 0; this.radioButton4.TabStop = true; this.radioButton4.Text = "&Auto"; this.radioButton4.UseVisualStyleBackColor = true; this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged); // // groupBox2 // this.groupBox2.Controls.Add(this.cbListHeaderOnEveryPage); this.groupBox2.Controls.Add(this.cbPrintSelection); this.groupBox2.Controls.Add(this.cbShrinkToFit); this.groupBox2.Controls.Add(this.cbUseGridLines); this.groupBox2.Controls.Add(this.rbStyleModern); this.groupBox2.Controls.Add(this.rbStyleMinimal); this.groupBox2.Controls.Add(this.label6); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(351, 79); this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "Formatting"; // // cbListHeaderOnEveryPage // this.cbListHeaderOnEveryPage.AutoSize = true; this.cbListHeaderOnEveryPage.Checked = true; this.cbListHeaderOnEveryPage.CheckState = System.Windows.Forms.CheckState.Checked; this.cbListHeaderOnEveryPage.Location = new System.Drawing.Point(159, 58); this.cbListHeaderOnEveryPage.Name = "cbListHeaderOnEveryPage"; this.cbListHeaderOnEveryPage.Size = new System.Drawing.Size(149, 17); this.cbListHeaderOnEveryPage.TabIndex = 8; this.cbListHeaderOnEveryPage.Text = "List header on every page"; this.cbListHeaderOnEveryPage.UseVisualStyleBackColor = true; this.cbListHeaderOnEveryPage.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbPrintSelection // this.cbPrintSelection.AutoSize = true; this.cbPrintSelection.Location = new System.Drawing.Point(9, 58); this.cbPrintSelection.Name = "cbPrintSelection"; this.cbPrintSelection.Size = new System.Drawing.Size(114, 17); this.cbPrintSelection.TabIndex = 7; this.cbPrintSelection.Text = "Print only selection"; this.cbPrintSelection.UseVisualStyleBackColor = true; this.cbPrintSelection.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbShrinkToFit // this.cbShrinkToFit.AutoSize = true; this.cbShrinkToFit.Checked = true; this.cbShrinkToFit.CheckState = System.Windows.Forms.CheckState.Checked; this.cbShrinkToFit.Location = new System.Drawing.Point(159, 41); this.cbShrinkToFit.Name = "cbShrinkToFit"; this.cbShrinkToFit.Size = new System.Drawing.Size(79, 17); this.cbShrinkToFit.TabIndex = 6; this.cbShrinkToFit.Text = "Shrink to fit"; this.cbShrinkToFit.UseVisualStyleBackColor = true; this.cbShrinkToFit.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbUseGridLines // this.cbUseGridLines.AutoSize = true; this.cbUseGridLines.Checked = true; this.cbUseGridLines.CheckState = System.Windows.Forms.CheckState.Checked; this.cbUseGridLines.Location = new System.Drawing.Point(9, 41); this.cbUseGridLines.Name = "cbUseGridLines"; this.cbUseGridLines.Size = new System.Drawing.Size(89, 17); this.cbUseGridLines.TabIndex = 5; this.cbUseGridLines.Text = "Use grid lines"; this.cbUseGridLines.UseVisualStyleBackColor = true; this.cbUseGridLines.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleModern // this.rbStyleModern.AutoSize = true; this.rbStyleModern.Checked = true; this.rbStyleModern.Location = new System.Drawing.Point(111, 17); this.rbStyleModern.Name = "rbStyleModern"; this.rbStyleModern.Size = new System.Drawing.Size(61, 17); this.rbStyleModern.TabIndex = 2; this.rbStyleModern.TabStop = true; this.rbStyleModern.Text = "Modern"; this.rbStyleModern.UseVisualStyleBackColor = true; this.rbStyleModern.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleMinimal // this.rbStyleMinimal.AutoSize = true; this.rbStyleMinimal.Location = new System.Drawing.Point(45, 17); this.rbStyleMinimal.Name = "rbStyleMinimal"; this.rbStyleMinimal.Size = new System.Drawing.Size(60, 17); this.rbStyleMinimal.TabIndex = 1; this.rbStyleMinimal.Text = "Minimal"; this.rbStyleMinimal.UseVisualStyleBackColor = true; this.rbStyleMinimal.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(6, 19); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(33, 13); this.label6.TabIndex = 0; this.label6.Text = "&Style:"; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.tbWatermark); this.groupBox1.Controls.Add(this.tbFooter); this.groupBox1.Controls.Add(this.tbHeader); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Location = new System.Drawing.Point(363, 6); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(384, 80); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; this.groupBox1.Text = "Settings"; // // tbWatermark // this.tbWatermark.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbWatermark.Location = new System.Drawing.Point(88, 56); this.tbWatermark.Name = "tbWatermark"; this.tbWatermark.Size = new System.Drawing.Size(288, 20); this.tbWatermark.TabIndex = 5; this.tbWatermark.Text = "Too easy!"; // // tbFooter // this.tbFooter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbFooter.Location = new System.Drawing.Point(88, 35); this.tbFooter.Name = "tbFooter"; this.tbFooter.Size = new System.Drawing.Size(288, 20); this.tbFooter.TabIndex = 3; this.tbFooter.Text = "{1:f}\\t\\tPages #{0}"; // // tbHeader // this.tbHeader.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbHeader.Location = new System.Drawing.Point(88, 13); this.tbHeader.Name = "tbHeader"; this.tbHeader.Size = new System.Drawing.Size(288, 20); this.tbHeader.TabIndex = 1; this.tbHeader.Text = "\\tListViewPrinter Demo"; this.toolTip1.SetToolTip(this.tbHeader, resources.GetString("tbHeader.ToolTip")); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 59); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(62, 13); this.label5.TabIndex = 4; this.label5.Text = "&Watermark:"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(6, 38); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(40, 13); this.label4.TabIndex = 2; this.label4.Text = "&Footer:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 16); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(45, 13); this.label3.TabIndex = 0; this.label3.Text = "&Header:"; // // numericUpDown1 // this.numericUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.numericUpDown1.Location = new System.Drawing.Point(693, 350); this.numericUpDown1.Maximum = new decimal(new int[] { 6, 0, 0, 0 }); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(41, 20); this.numericUpDown1.TabIndex = 7; this.numericUpDown1.Value = new decimal(new int[] { 2, 0, 0, 0 }); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(647, 352); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(40, 13); this.label2.TabIndex = 6; this.label2.Text = "&Pages:"; // // cmdPrint // this.cmdPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmdPrint.Location = new System.Drawing.Point(647, 193); this.cmdPrint.Name = "cmdPrint"; this.cmdPrint.Size = new System.Drawing.Size(95, 23); this.cmdPrint.TabIndex = 4; this.cmdPrint.Text = "&Print..."; this.cmdPrint.UseVisualStyleBackColor = true; this.cmdPrint.Click += new System.EventHandler(this.button3_Click); // // cmdPrintPreview // this.cmdPrintPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmdPrintPreview.Location = new System.Drawing.Point(647, 164); this.cmdPrintPreview.Name = "cmdPrintPreview"; this.cmdPrintPreview.Size = new System.Drawing.Size(95, 23); this.cmdPrintPreview.TabIndex = 3; this.cmdPrintPreview.Text = "Print Pre&view..."; this.cmdPrintPreview.UseVisualStyleBackColor = true; this.cmdPrintPreview.Click += new System.EventHandler(this.button2_Click); // // cmdPageSetup // this.cmdPageSetup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmdPageSetup.Location = new System.Drawing.Point(647, 135); this.cmdPageSetup.Name = "cmdPageSetup"; this.cmdPageSetup.Size = new System.Drawing.Size(95, 23); this.cmdPageSetup.TabIndex = 2; this.cmdPageSetup.Text = "Page &Setup..."; this.cmdPageSetup.UseVisualStyleBackColor = true; this.cmdPageSetup.Click += new System.EventHandler(this.button1_Click); // // printPreviewControl1 // this.printPreviewControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Columns = 2; this.printPreviewControl1.Document = this.listViewPrinter1; this.printPreviewControl1.Location = new System.Drawing.Point(6, 103); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(627, 504); this.printPreviewControl1.TabIndex = 8; this.printPreviewControl1.Zoom = 0.45765611633875108D; // // listViewPrinter1 // // // // solidBrushData1.Color = System.Drawing.Color.Maroon; penData1.Brush = solidBrushData1; this.listViewPrinter1.CellFormat.AllBorderPenData = penData1; this.listViewPrinter1.CellFormat.BottomBorderPenData = penData1; this.listViewPrinter1.CellFormat.CanWrap = true; this.listViewPrinter1.CellFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.listViewPrinter1.CellFormat.LeftBorderPenData = penData1; this.listViewPrinter1.CellFormat.RightBorderPenData = penData1; solidBrushData2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.listViewPrinter1.CellFormat.TextBrushData = solidBrushData2; this.listViewPrinter1.CellFormat.TopBorderPenData = penData1; this.listViewPrinter1.Footer = "{1}\t\tPage #{0}"; // // // this.listViewPrinter1.FooterFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Italic); // // // solidBrushData3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); penData2.Brush = solidBrushData3; penData2.Width = 10F; this.listViewPrinter1.GroupHeaderFormat.AllBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.BottomBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Bold); this.listViewPrinter1.GroupHeaderFormat.LeftBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.RightBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.TopBorderPenData = penData2; this.listViewPrinter1.Header = "ListViewPrinterDemo"; // // // solidBrushData4.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); penData3.Brush = solidBrushData4; penData3.Width = 4F; this.listViewPrinter1.HeaderFormat.AllBorderPenData = penData3; linearGradientBrushData1.FromColor = System.Drawing.Color.Aqua; linearGradientBrushData1.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; linearGradientBrushData1.ToColor = System.Drawing.Color.Pink; this.listViewPrinter1.HeaderFormat.BackgroundBrushData = linearGradientBrushData1; this.listViewPrinter1.HeaderFormat.BottomBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.Font = new System.Drawing.Font("Verdana", 24F); this.listViewPrinter1.HeaderFormat.LeftBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.RightBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.TopBorderPenData = penData3; this.listViewPrinter1.IsListHeaderOnEachPage = false; // // // this.listViewPrinter1.ListHeaderFormat.CanWrap = true; this.listViewPrinter1.ListHeaderFormat.Font = new System.Drawing.Font("Verdana", 12F); this.listViewPrinter1.Watermark = "Top Secret"; // // cmdRefresh // this.cmdRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmdRefresh.Location = new System.Drawing.Point(647, 106); this.cmdRefresh.Name = "cmdRefresh"; this.cmdRefresh.Size = new System.Drawing.Size(95, 23); this.cmdRefresh.TabIndex = 2; this.cmdRefresh.Text = "Refresh"; this.cmdRefresh.UseVisualStyleBackColor = true; this.cmdRefresh.Click += new System.EventHandler(this.UpdatePrintPreview); // // frmPrintObjectListView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(785, 663); this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.numericUpDown1); this.Controls.Add(this.label2); this.Controls.Add(this.cmdPrint); this.Controls.Add(this.cmdPrintPreview); this.Controls.Add(this.cmdRefresh); this.Controls.Add(this.cmdPageSetup); this.Controls.Add(this.printPreviewControl1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "frmPrintObjectListView"; this.ShowInTaskbar = false; this.Text = "Printen"; this.Load += new System.EventHandler(this.UpdatePrintPreview); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); BrightIdeasSoftware.PenData penData1 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData1 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData2 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData2 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData3 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData3 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData4 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.LinearGradientBrushData linearGradientBrushData1 = new BrightIdeasSoftware.LinearGradientBrushData(); BrightIdeasSoftware.PenData penData4 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData5 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData6 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData5 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.LinearGradientBrushData linearGradientBrushData2 = new BrightIdeasSoftware.LinearGradientBrushData(); BrightIdeasSoftware.PenData penData6 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData7 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData8 = new BrightIdeasSoftware.SolidBrushData(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.listView1 = new System.Windows.Forms.ListView(); this.colName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.tabPage2 = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.rbStyleCustom = new System.Windows.Forms.RadioButton(); this.cbListHeaderOnEveryPage = new System.Windows.Forms.CheckBox(); this.cbPrintSelection = new System.Windows.Forms.CheckBox(); this.cbShrinkToFit = new System.Windows.Forms.CheckBox(); this.cbUseGridLines = new System.Windows.Forms.CheckBox(); this.rbStyleOTT = new System.Windows.Forms.RadioButton(); this.rbStyleModern = new System.Windows.Forms.RadioButton(); this.rbStyleMinimal = new System.Windows.Forms.RadioButton(); this.label6 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.tbWatermark = new System.Windows.Forms.TextBox(); this.tbFooter = new System.Windows.Forms.TextBox(); this.tbHeader = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.button3 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.listViewPrinter1 = new BrightIdeasSoftware.ListViewPrinter(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.label1 = new System.Windows.Forms.Label(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.listViewPrinter2 = new BrightIdeasSoftware.ListViewPrinter(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabPage2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.tabPage3.SuspendLayout(); this.SuspendLayout(); // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Location = new System.Drawing.Point(12, 12); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(761, 639); this.tabControl1.TabIndex = 0; this.tabControl1.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected); // // tabPage1 // this.tabPage1.Controls.Add(this.checkBox1); this.tabPage1.Controls.Add(this.listView1); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(753, 613); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "A ListView with data"; this.tabPage1.UseVisualStyleBackColor = true; // // checkBox1 // this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBox1.AutoSize = true; this.checkBox1.Location = new System.Drawing.Point(6, 584); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(88, 17); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "&Show groups"; this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.CheckBox1CheckedChanged); // // listView1 // this.listView1.AllowColumnReorder = true; this.listView1.AllowDrop = true; this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colName, this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4 }); this.listView1.FullRowSelect = true; this.listView1.Location = new System.Drawing.Point(6, 6); this.listView1.Name = "listView1"; this.listView1.ShowGroups = false; this.listView1.ShowItemToolTips = true; this.listView1.Size = new System.Drawing.Size(740, 572); this.listView1.SmallImageList = this.imageList1; this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending; this.listView1.TabIndex = 0; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = System.Windows.Forms.View.Details; this.listView1.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView1_ColumnClick); // // colName // this.colName.Text = "Name"; this.colName.Width = 186; // // columnHeader1 // this.columnHeader1.DisplayIndex = 2; this.columnHeader1.Text = "Company"; this.columnHeader1.Width = 150; // // columnHeader2 // this.columnHeader2.DisplayIndex = 1; this.columnHeader2.Text = "Occupation"; this.columnHeader2.Width = 155; // // columnHeader3 // this.columnHeader3.Text = "Salary"; this.columnHeader3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.columnHeader3.Width = 94; // // columnHeader4 // this.columnHeader4.Text = "Height"; this.columnHeader4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.columnHeader4.Width = 75; // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, "user"); this.imageList1.Images.SetKeyName(1, "compass"); this.imageList1.Images.SetKeyName(2, "movie"); this.imageList1.Images.SetKeyName(3, "music"); this.imageList1.Images.SetKeyName(4, "public"); this.imageList1.Images.SetKeyName(5, "spanner"); // // tabPage2 // this.tabPage2.Controls.Add(this.groupBox3); this.tabPage2.Controls.Add(this.groupBox2); this.tabPage2.Controls.Add(this.groupBox1); this.tabPage2.Controls.Add(this.numericUpDown1); this.tabPage2.Controls.Add(this.label2); this.tabPage2.Controls.Add(this.button3); this.tabPage2.Controls.Add(this.button2); this.tabPage2.Controls.Add(this.button1); this.tabPage2.Controls.Add(this.printPreviewControl1); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(753, 613); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Printing the ListView"; this.tabPage2.UseVisualStyleBackColor = true; // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox3.Controls.Add(this.radioButton3); this.groupBox3.Controls.Add(this.radioButton1); this.groupBox3.Controls.Add(this.radioButton2); this.groupBox3.Controls.Add(this.radioButton4); this.groupBox3.Location = new System.Drawing.Point(647, 190); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(95, 95); this.groupBox3.TabIndex = 5; this.groupBox3.TabStop = false; this.groupBox3.Text = "Magnification:"; // // radioButton3 // this.radioButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton3.AutoSize = true; this.radioButton3.Location = new System.Drawing.Point(15, 71); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(45, 17); this.radioButton3.TabIndex = 3; this.radioButton3.Text = "&50%"; this.radioButton3.UseVisualStyleBackColor = true; this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); // // radioButton1 // this.radioButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton1.AutoSize = true; this.radioButton1.Location = new System.Drawing.Point(15, 37); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(51, 17); this.radioButton1.TabIndex = 1; this.radioButton1.Text = "&200%"; this.radioButton1.UseVisualStyleBackColor = true; this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); // // radioButton2 // this.radioButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton2.AutoSize = true; this.radioButton2.Location = new System.Drawing.Point(15, 54); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(51, 17); this.radioButton2.TabIndex = 2; this.radioButton2.Text = "&100%"; this.radioButton2.UseVisualStyleBackColor = true; this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); // // radioButton4 // this.radioButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton4.AutoSize = true; this.radioButton4.Checked = true; this.radioButton4.Location = new System.Drawing.Point(15, 19); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(47, 17); this.radioButton4.TabIndex = 0; this.radioButton4.TabStop = true; this.radioButton4.Text = "&Auto"; this.radioButton4.UseVisualStyleBackColor = true; this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged); // // groupBox2 // this.groupBox2.Controls.Add(this.rbStyleCustom); this.groupBox2.Controls.Add(this.cbListHeaderOnEveryPage); this.groupBox2.Controls.Add(this.cbPrintSelection); this.groupBox2.Controls.Add(this.cbShrinkToFit); this.groupBox2.Controls.Add(this.cbUseGridLines); this.groupBox2.Controls.Add(this.rbStyleOTT); this.groupBox2.Controls.Add(this.rbStyleModern); this.groupBox2.Controls.Add(this.rbStyleMinimal); this.groupBox2.Controls.Add(this.label6); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(351, 79); this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "Formatting"; // // rbStyleCustom // this.rbStyleCustom.AutoSize = true; this.rbStyleCustom.Location = new System.Drawing.Point(270, 17); this.rbStyleCustom.Name = "rbStyleCustom"; this.rbStyleCustom.Size = new System.Drawing.Size(60, 17); this.rbStyleCustom.TabIndex = 4; this.rbStyleCustom.Text = "Custom"; this.toolTip1.SetToolTip(this.rbStyleCustom, "The report format is taken from the \"Custom Format\" tab"); this.rbStyleCustom.UseVisualStyleBackColor = true; // // cbListHeaderOnEveryPage // this.cbListHeaderOnEveryPage.AutoSize = true; this.cbListHeaderOnEveryPage.Checked = true; this.cbListHeaderOnEveryPage.CheckState = System.Windows.Forms.CheckState.Checked; this.cbListHeaderOnEveryPage.Location = new System.Drawing.Point(159, 58); this.cbListHeaderOnEveryPage.Name = "cbListHeaderOnEveryPage"; this.cbListHeaderOnEveryPage.Size = new System.Drawing.Size(149, 17); this.cbListHeaderOnEveryPage.TabIndex = 8; this.cbListHeaderOnEveryPage.Text = "List header on every page"; this.cbListHeaderOnEveryPage.UseVisualStyleBackColor = true; this.cbListHeaderOnEveryPage.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbPrintSelection // this.cbPrintSelection.AutoSize = true; this.cbPrintSelection.Location = new System.Drawing.Point(9, 58); this.cbPrintSelection.Name = "cbPrintSelection"; this.cbPrintSelection.Size = new System.Drawing.Size(114, 17); this.cbPrintSelection.TabIndex = 7; this.cbPrintSelection.Text = "Print only selection"; this.cbPrintSelection.UseVisualStyleBackColor = true; this.cbPrintSelection.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbShrinkToFit // this.cbShrinkToFit.AutoSize = true; this.cbShrinkToFit.Checked = true; this.cbShrinkToFit.CheckState = System.Windows.Forms.CheckState.Checked; this.cbShrinkToFit.Location = new System.Drawing.Point(159, 41); this.cbShrinkToFit.Name = "cbShrinkToFit"; this.cbShrinkToFit.Size = new System.Drawing.Size(79, 17); this.cbShrinkToFit.TabIndex = 6; this.cbShrinkToFit.Text = "Shrink to fit"; this.cbShrinkToFit.UseVisualStyleBackColor = true; this.cbShrinkToFit.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbUseGridLines // this.cbUseGridLines.AutoSize = true; this.cbUseGridLines.Checked = true; this.cbUseGridLines.CheckState = System.Windows.Forms.CheckState.Checked; this.cbUseGridLines.Location = new System.Drawing.Point(9, 41); this.cbUseGridLines.Name = "cbUseGridLines"; this.cbUseGridLines.Size = new System.Drawing.Size(89, 17); this.cbUseGridLines.TabIndex = 5; this.cbUseGridLines.Text = "Use grid lines"; this.cbUseGridLines.UseVisualStyleBackColor = true; this.cbUseGridLines.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleOTT // this.rbStyleOTT.AutoSize = true; this.rbStyleOTT.Location = new System.Drawing.Point(177, 17); this.rbStyleOTT.Name = "rbStyleOTT"; this.rbStyleOTT.Size = new System.Drawing.Size(87, 17); this.rbStyleOTT.TabIndex = 3; this.rbStyleOTT.Text = "Over the top!"; this.rbStyleOTT.UseVisualStyleBackColor = true; this.rbStyleOTT.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleModern // this.rbStyleModern.AutoSize = true; this.rbStyleModern.Checked = true; this.rbStyleModern.Location = new System.Drawing.Point(111, 17); this.rbStyleModern.Name = "rbStyleModern"; this.rbStyleModern.Size = new System.Drawing.Size(61, 17); this.rbStyleModern.TabIndex = 2; this.rbStyleModern.TabStop = true; this.rbStyleModern.Text = "Modern"; this.rbStyleModern.UseVisualStyleBackColor = true; this.rbStyleModern.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleMinimal // this.rbStyleMinimal.AutoSize = true; this.rbStyleMinimal.Location = new System.Drawing.Point(45, 17); this.rbStyleMinimal.Name = "rbStyleMinimal"; this.rbStyleMinimal.Size = new System.Drawing.Size(60, 17); this.rbStyleMinimal.TabIndex = 1; this.rbStyleMinimal.Text = "Minimal"; this.rbStyleMinimal.UseVisualStyleBackColor = true; this.rbStyleMinimal.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(6, 19); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(33, 13); this.label6.TabIndex = 0; this.label6.Text = "&Style:"; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.tbWatermark); this.groupBox1.Controls.Add(this.tbFooter); this.groupBox1.Controls.Add(this.tbHeader); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Location = new System.Drawing.Point(363, 6); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(384, 80); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; this.groupBox1.Text = "Settings"; // // tbWatermark // this.tbWatermark.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbWatermark.Location = new System.Drawing.Point(88, 56); this.tbWatermark.Name = "tbWatermark"; this.tbWatermark.Size = new System.Drawing.Size(288, 20); this.tbWatermark.TabIndex = 5; this.tbWatermark.Text = "Too easy!"; // // tbFooter // this.tbFooter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbFooter.Location = new System.Drawing.Point(88, 35); this.tbFooter.Name = "tbFooter"; this.tbFooter.Size = new System.Drawing.Size(288, 20); this.tbFooter.TabIndex = 3; this.tbFooter.Text = "{1:f}\\t\\tPages #{0}"; // // tbHeader // this.tbHeader.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbHeader.Location = new System.Drawing.Point(88, 13); this.tbHeader.Name = "tbHeader"; this.tbHeader.Size = new System.Drawing.Size(288, 20); this.tbHeader.TabIndex = 1; this.tbHeader.Text = "\\tListViewPrinter Demo"; this.toolTip1.SetToolTip(this.tbHeader, resources.GetString("tbHeader.ToolTip")); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 59); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(62, 13); this.label5.TabIndex = 4; this.label5.Text = "&Watermark:"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(6, 38); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(40, 13); this.label4.TabIndex = 2; this.label4.Text = "&Footer:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 16); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(45, 13); this.label3.TabIndex = 0; this.label3.Text = "&Header:"; // // numericUpDown1 // this.numericUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.numericUpDown1.Location = new System.Drawing.Point(693, 318); this.numericUpDown1.Maximum = new decimal(new int[] { 6, 0, 0, 0 }); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(41, 20); this.numericUpDown1.TabIndex = 7; this.numericUpDown1.Value = new decimal(new int[] { 2, 0, 0, 0 }); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(647, 320); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(40, 13); this.label2.TabIndex = 6; this.label2.Text = "&Pages:"; // // button3 // this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button3.Location = new System.Drawing.Point(647, 161); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(95, 23); this.button3.TabIndex = 4; this.button3.Text = "&Print..."; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button2 // this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button2.Location = new System.Drawing.Point(647, 132); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(95, 23); this.button2.TabIndex = 3; this.button2.Text = "Print Pre&view..."; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button1 // this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button1.Location = new System.Drawing.Point(647, 103); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(95, 23); this.button1.TabIndex = 2; this.button1.Text = "Page &Setup..."; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // printPreviewControl1 // this.printPreviewControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Columns = 2; this.printPreviewControl1.Document = this.listViewPrinter1; this.printPreviewControl1.Location = new System.Drawing.Point(6, 103); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(627, 504); this.printPreviewControl1.TabIndex = 8; this.printPreviewControl1.Zoom = 0.45765611633875108D; // // listViewPrinter1 // // // // solidBrushData1.Color = System.Drawing.Color.Maroon; penData1.Brush = solidBrushData1; this.listViewPrinter1.CellFormat.AllBorderPenData = penData1; this.listViewPrinter1.CellFormat.BottomBorderPenData = penData1; this.listViewPrinter1.CellFormat.CanWrap = true; this.listViewPrinter1.CellFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.listViewPrinter1.CellFormat.LeftBorderPenData = penData1; this.listViewPrinter1.CellFormat.RightBorderPenData = penData1; solidBrushData2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.listViewPrinter1.CellFormat.TextBrushData = solidBrushData2; this.listViewPrinter1.CellFormat.TopBorderPenData = penData1; this.listViewPrinter1.Footer = "{1}\t\tPage #{0}"; // // // this.listViewPrinter1.FooterFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Italic); // // // solidBrushData3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); penData2.Brush = solidBrushData3; penData2.Width = 10F; this.listViewPrinter1.GroupHeaderFormat.AllBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.BottomBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Bold); this.listViewPrinter1.GroupHeaderFormat.LeftBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.RightBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.TopBorderPenData = penData2; this.listViewPrinter1.Header = "ListViewPrinterDemo"; // // // solidBrushData4.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); penData3.Brush = solidBrushData4; penData3.Width = 4F; this.listViewPrinter1.HeaderFormat.AllBorderPenData = penData3; linearGradientBrushData1.FromColor = System.Drawing.Color.Aqua; linearGradientBrushData1.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; linearGradientBrushData1.ToColor = System.Drawing.Color.Pink; this.listViewPrinter1.HeaderFormat.BackgroundBrushData = linearGradientBrushData1; this.listViewPrinter1.HeaderFormat.BottomBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.Font = new System.Drawing.Font("Verdana", 24F); this.listViewPrinter1.HeaderFormat.LeftBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.RightBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.TopBorderPenData = penData3; this.listViewPrinter1.IsListHeaderOnEachPage = false; // // // this.listViewPrinter1.ListHeaderFormat.CanWrap = true; this.listViewPrinter1.ListHeaderFormat.Font = new System.Drawing.Font("Verdana", 12F); this.listViewPrinter1.ListView = this.listView1; this.listViewPrinter1.Watermark = "Top Secret"; // // tabPage3 // this.tabPage3.Controls.Add(this.label1); this.tabPage3.Controls.Add(this.propertyGrid1); this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Padding = new System.Windows.Forms.Padding(3); this.tabPage3.Size = new System.Drawing.Size(753, 613); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "Custom Format"; this.tabPage3.UseVisualStyleBackColor = true; // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label1.Location = new System.Drawing.Point(6, 3); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(741, 39); this.label1.TabIndex = 6; this.label1.Text = resources.GetString("label1.Text"); // // propertyGrid1 // this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.propertyGrid1.Location = new System.Drawing.Point(6, 45); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.SelectedObject = this.listViewPrinter2; this.propertyGrid1.Size = new System.Drawing.Size(741, 562); this.propertyGrid1.TabIndex = 5; // // listViewPrinter2 // // // // solidBrushData5.Color = System.Drawing.Color.Gray; penData4.Brush = solidBrushData5; this.listViewPrinter2.CellFormat.AllBorderPenData = penData4; solidBrushData6.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.listViewPrinter2.CellFormat.BackgroundBrushData = solidBrushData6; this.listViewPrinter2.CellFormat.BottomBorderPenData = penData4; this.listViewPrinter2.CellFormat.CanWrap = true; this.listViewPrinter2.CellFormat.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listViewPrinter2.CellFormat.LeftBorderPenData = penData4; this.listViewPrinter2.CellFormat.RightBorderPenData = penData4; this.listViewPrinter2.CellFormat.TopBorderPenData = penData4; // // // this.listViewPrinter2.FooterFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Italic); linearGradientBrushData2.FromColor = System.Drawing.Color.Cornsilk; linearGradientBrushData2.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; linearGradientBrushData2.ToColor = System.Drawing.Color.Gold; penData5.Brush = linearGradientBrushData2; penData5.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot; penData5.Width = 4F; this.listViewPrinter2.FooterFormat.TopBorderPenData = penData5; // // // this.listViewPrinter2.GroupHeaderFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Bold); // // // solidBrushData7.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); penData6.Brush = solidBrushData7; penData6.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; this.listViewPrinter2.HeaderFormat.AllBorderPenData = penData6; solidBrushData8.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))); this.listViewPrinter2.HeaderFormat.BackgroundBrushData = solidBrushData8; this.listViewPrinter2.HeaderFormat.BottomBorderPenData = penData6; this.listViewPrinter2.HeaderFormat.Font = new System.Drawing.Font("Verdana", 24F); this.listViewPrinter2.HeaderFormat.LeftBorderPenData = penData6; this.listViewPrinter2.HeaderFormat.RightBorderPenData = penData6; this.listViewPrinter2.HeaderFormat.TopBorderPenData = penData6; this.listViewPrinter2.IsListHeaderOnEachPage = false; // // // this.listViewPrinter2.ListHeaderFormat.CanWrap = true; this.listViewPrinter2.ListHeaderFormat.Font = new System.Drawing.Font("Verdana", 12F); this.listViewPrinter2.WatermarkColor = System.Drawing.Color.Red; this.listViewPrinter2.WatermarkFont = new System.Drawing.Font("Arial Rounded MT Bold", 72F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(785, 663); this.Controls.Add(this.tabControl1); this.Name = "Form1"; this.Text = "ListViewPrinter Demo"; this.Load += new System.EventHandler(this.Form1_Load); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.tabPage3.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() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); BrightIdeasSoftware.PenData penData1 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData1 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData2 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData2 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData3 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData3 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData4 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.LinearGradientBrushData linearGradientBrushData1 = new BrightIdeasSoftware.LinearGradientBrushData(); BrightIdeasSoftware.PenData penData4 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData5 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData6 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.PenData penData5 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.LinearGradientBrushData linearGradientBrushData2 = new BrightIdeasSoftware.LinearGradientBrushData(); BrightIdeasSoftware.PenData penData6 = new BrightIdeasSoftware.PenData(); BrightIdeasSoftware.SolidBrushData solidBrushData7 = new BrightIdeasSoftware.SolidBrushData(); BrightIdeasSoftware.SolidBrushData solidBrushData8 = new BrightIdeasSoftware.SolidBrushData(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.listView1 = new System.Windows.Forms.ListView(); this.colName = new System.Windows.Forms.ColumnHeader(); this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); this.columnHeader3 = new System.Windows.Forms.ColumnHeader(); this.columnHeader4 = new System.Windows.Forms.ColumnHeader(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.tabPage2 = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.rbStyleCustom = new System.Windows.Forms.RadioButton(); this.cbListHeaderOnEveryPage = new System.Windows.Forms.CheckBox(); this.cbPrintSelection = new System.Windows.Forms.CheckBox(); this.cbShrinkToFit = new System.Windows.Forms.CheckBox(); this.cbUseGridLines = new System.Windows.Forms.CheckBox(); this.rbStyleOTT = new System.Windows.Forms.RadioButton(); this.rbStyleModern = new System.Windows.Forms.RadioButton(); this.rbStyleMinimal = new System.Windows.Forms.RadioButton(); this.label6 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.tbWatermark = new System.Windows.Forms.TextBox(); this.tbFooter = new System.Windows.Forms.TextBox(); this.tbHeader = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.button3 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.listViewPrinter1 = new BrightIdeasSoftware.ListViewPrinter(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.label1 = new System.Windows.Forms.Label(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.listViewPrinter2 = new BrightIdeasSoftware.ListViewPrinter(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabPage2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.tabPage3.SuspendLayout(); this.SuspendLayout(); // // tabControl1 // this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Controls.Add(this.tabPage3); this.tabControl1.Location = new System.Drawing.Point(12, 12); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(761, 639); this.tabControl1.TabIndex = 0; this.tabControl1.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected); // // tabPage1 // this.tabPage1.Controls.Add(this.checkBox1); this.tabPage1.Controls.Add(this.listView1); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(753, 613); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "A ListView with data"; this.tabPage1.UseVisualStyleBackColor = true; // // checkBox1 // this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBox1.AutoSize = true; this.checkBox1.Location = new System.Drawing.Point(6, 584); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(88, 17); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "&Show groups"; this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.CheckBox1CheckedChanged); // // listView1 // this.listView1.AllowColumnReorder = true; this.listView1.AllowDrop = true; this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colName, this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4}); this.listView1.FullRowSelect = true; this.listView1.Location = new System.Drawing.Point(6, 6); this.listView1.Name = "listView1"; this.listView1.ShowGroups = false; this.listView1.ShowItemToolTips = true; this.listView1.Size = new System.Drawing.Size(740, 572); this.listView1.SmallImageList = this.imageList1; this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending; this.listView1.TabIndex = 0; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = System.Windows.Forms.View.Details; this.listView1.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView1_ColumnClick); // // colName // this.colName.Text = "Name"; this.colName.Width = 186; // // columnHeader1 // this.columnHeader1.DisplayIndex = 2; this.columnHeader1.Text = "Company"; this.columnHeader1.Width = 150; // // columnHeader2 // this.columnHeader2.DisplayIndex = 1; this.columnHeader2.Text = "Occupation"; this.columnHeader2.Width = 155; // // columnHeader3 // this.columnHeader3.Text = "Salary"; this.columnHeader3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.columnHeader3.Width = 94; // // columnHeader4 // this.columnHeader4.Text = "Height"; this.columnHeader4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.columnHeader4.Width = 75; // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, "user"); this.imageList1.Images.SetKeyName(1, "compass"); this.imageList1.Images.SetKeyName(2, "movie"); this.imageList1.Images.SetKeyName(3, "music"); this.imageList1.Images.SetKeyName(4, "public"); this.imageList1.Images.SetKeyName(5, "spanner"); // // tabPage2 // this.tabPage2.Controls.Add(this.groupBox3); this.tabPage2.Controls.Add(this.groupBox2); this.tabPage2.Controls.Add(this.groupBox1); this.tabPage2.Controls.Add(this.numericUpDown1); this.tabPage2.Controls.Add(this.label2); this.tabPage2.Controls.Add(this.button3); this.tabPage2.Controls.Add(this.button2); this.tabPage2.Controls.Add(this.button1); this.tabPage2.Controls.Add(this.printPreviewControl1); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(753, 613); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Printing the ListView"; this.tabPage2.UseVisualStyleBackColor = true; // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox3.Controls.Add(this.radioButton3); this.groupBox3.Controls.Add(this.radioButton1); this.groupBox3.Controls.Add(this.radioButton2); this.groupBox3.Controls.Add(this.radioButton4); this.groupBox3.Location = new System.Drawing.Point(647, 190); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(95, 95); this.groupBox3.TabIndex = 5; this.groupBox3.TabStop = false; this.groupBox3.Text = "Magnification:"; // // radioButton3 // this.radioButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton3.AutoSize = true; this.radioButton3.Location = new System.Drawing.Point(15, 71); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(45, 17); this.radioButton3.TabIndex = 3; this.radioButton3.Text = "&50%"; this.radioButton3.UseVisualStyleBackColor = true; this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); // // radioButton1 // this.radioButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton1.AutoSize = true; this.radioButton1.Location = new System.Drawing.Point(15, 37); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(51, 17); this.radioButton1.TabIndex = 1; this.radioButton1.Text = "&200%"; this.radioButton1.UseVisualStyleBackColor = true; this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); // // radioButton2 // this.radioButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton2.AutoSize = true; this.radioButton2.Location = new System.Drawing.Point(15, 54); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(51, 17); this.radioButton2.TabIndex = 2; this.radioButton2.Text = "&100%"; this.radioButton2.UseVisualStyleBackColor = true; this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); // // radioButton4 // this.radioButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton4.AutoSize = true; this.radioButton4.Checked = true; this.radioButton4.Location = new System.Drawing.Point(15, 19); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(47, 17); this.radioButton4.TabIndex = 0; this.radioButton4.TabStop = true; this.radioButton4.Text = "&Auto"; this.radioButton4.UseVisualStyleBackColor = true; this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged); // // groupBox2 // this.groupBox2.Controls.Add(this.rbStyleCustom); this.groupBox2.Controls.Add(this.cbListHeaderOnEveryPage); this.groupBox2.Controls.Add(this.cbPrintSelection); this.groupBox2.Controls.Add(this.cbShrinkToFit); this.groupBox2.Controls.Add(this.cbUseGridLines); this.groupBox2.Controls.Add(this.rbStyleOTT); this.groupBox2.Controls.Add(this.rbStyleModern); this.groupBox2.Controls.Add(this.rbStyleMinimal); this.groupBox2.Controls.Add(this.label6); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(351, 79); this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "Formatting"; // // rbStyleCustom // this.rbStyleCustom.AutoSize = true; this.rbStyleCustom.Location = new System.Drawing.Point(270, 17); this.rbStyleCustom.Name = "rbStyleCustom"; this.rbStyleCustom.Size = new System.Drawing.Size(60, 17); this.rbStyleCustom.TabIndex = 4; this.rbStyleCustom.Text = "Custom"; this.toolTip1.SetToolTip(this.rbStyleCustom, "The report format is taken from the \"Custom Format\" tab"); this.rbStyleCustom.UseVisualStyleBackColor = true; // // cbListHeaderOnEveryPage // this.cbListHeaderOnEveryPage.AutoSize = true; this.cbListHeaderOnEveryPage.Checked = true; this.cbListHeaderOnEveryPage.CheckState = System.Windows.Forms.CheckState.Checked; this.cbListHeaderOnEveryPage.Location = new System.Drawing.Point(159, 58); this.cbListHeaderOnEveryPage.Name = "cbListHeaderOnEveryPage"; this.cbListHeaderOnEveryPage.Size = new System.Drawing.Size(149, 17); this.cbListHeaderOnEveryPage.TabIndex = 8; this.cbListHeaderOnEveryPage.Text = "List header on every page"; this.cbListHeaderOnEveryPage.UseVisualStyleBackColor = true; this.cbListHeaderOnEveryPage.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbPrintSelection // this.cbPrintSelection.AutoSize = true; this.cbPrintSelection.Location = new System.Drawing.Point(9, 58); this.cbPrintSelection.Name = "cbPrintSelection"; this.cbPrintSelection.Size = new System.Drawing.Size(114, 17); this.cbPrintSelection.TabIndex = 7; this.cbPrintSelection.Text = "Print only selection"; this.cbPrintSelection.UseVisualStyleBackColor = true; this.cbPrintSelection.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbShrinkToFit // this.cbShrinkToFit.AutoSize = true; this.cbShrinkToFit.Checked = true; this.cbShrinkToFit.CheckState = System.Windows.Forms.CheckState.Checked; this.cbShrinkToFit.Location = new System.Drawing.Point(159, 41); this.cbShrinkToFit.Name = "cbShrinkToFit"; this.cbShrinkToFit.Size = new System.Drawing.Size(79, 17); this.cbShrinkToFit.TabIndex = 6; this.cbShrinkToFit.Text = "Shrink to fit"; this.cbShrinkToFit.UseVisualStyleBackColor = true; this.cbShrinkToFit.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // cbUseGridLines // this.cbUseGridLines.AutoSize = true; this.cbUseGridLines.Checked = true; this.cbUseGridLines.CheckState = System.Windows.Forms.CheckState.Checked; this.cbUseGridLines.Location = new System.Drawing.Point(9, 41); this.cbUseGridLines.Name = "cbUseGridLines"; this.cbUseGridLines.Size = new System.Drawing.Size(89, 17); this.cbUseGridLines.TabIndex = 5; this.cbUseGridLines.Text = "Use grid lines"; this.cbUseGridLines.UseVisualStyleBackColor = true; this.cbUseGridLines.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleOTT // this.rbStyleOTT.AutoSize = true; this.rbStyleOTT.Location = new System.Drawing.Point(177, 17); this.rbStyleOTT.Name = "rbStyleOTT"; this.rbStyleOTT.Size = new System.Drawing.Size(87, 17); this.rbStyleOTT.TabIndex = 3; this.rbStyleOTT.Text = "Over the top!"; this.rbStyleOTT.UseVisualStyleBackColor = true; this.rbStyleOTT.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleModern // this.rbStyleModern.AutoSize = true; this.rbStyleModern.Checked = true; this.rbStyleModern.Location = new System.Drawing.Point(111, 17); this.rbStyleModern.Name = "rbStyleModern"; this.rbStyleModern.Size = new System.Drawing.Size(61, 17); this.rbStyleModern.TabIndex = 2; this.rbStyleModern.TabStop = true; this.rbStyleModern.Text = "Modern"; this.rbStyleModern.UseVisualStyleBackColor = true; this.rbStyleModern.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // rbStyleMinimal // this.rbStyleMinimal.AutoSize = true; this.rbStyleMinimal.Location = new System.Drawing.Point(45, 17); this.rbStyleMinimal.Name = "rbStyleMinimal"; this.rbStyleMinimal.Size = new System.Drawing.Size(60, 17); this.rbStyleMinimal.TabIndex = 1; this.rbStyleMinimal.Text = "Minimal"; this.rbStyleMinimal.UseVisualStyleBackColor = true; this.rbStyleMinimal.CheckedChanged += new System.EventHandler(this.UpdatePrintPreview); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(6, 19); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(33, 13); this.label6.TabIndex = 0; this.label6.Text = "&Style:"; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.tbWatermark); this.groupBox1.Controls.Add(this.tbFooter); this.groupBox1.Controls.Add(this.tbHeader); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Location = new System.Drawing.Point(363, 6); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(384, 80); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; this.groupBox1.Text = "Settings"; // // tbWatermark // this.tbWatermark.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbWatermark.Location = new System.Drawing.Point(88, 56); this.tbWatermark.Name = "tbWatermark"; this.tbWatermark.Size = new System.Drawing.Size(288, 20); this.tbWatermark.TabIndex = 5; this.tbWatermark.Text = "Too easy!"; // // tbFooter // this.tbFooter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbFooter.Location = new System.Drawing.Point(88, 35); this.tbFooter.Name = "tbFooter"; this.tbFooter.Size = new System.Drawing.Size(288, 20); this.tbFooter.TabIndex = 3; this.tbFooter.Text = "{1:f}\\t\\tPages #{0}"; // // tbHeader // this.tbHeader.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tbHeader.Location = new System.Drawing.Point(88, 13); this.tbHeader.Name = "tbHeader"; this.tbHeader.Size = new System.Drawing.Size(288, 20); this.tbHeader.TabIndex = 1; this.tbHeader.Text = "\\tListViewPrinter Demo"; this.toolTip1.SetToolTip(this.tbHeader, resources.GetString("tbHeader.ToolTip")); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 59); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(62, 13); this.label5.TabIndex = 4; this.label5.Text = "&Watermark:"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(6, 38); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(40, 13); this.label4.TabIndex = 2; this.label4.Text = "&Footer:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 16); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(45, 13); this.label3.TabIndex = 0; this.label3.Text = "&Header:"; // // numericUpDown1 // this.numericUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.numericUpDown1.Location = new System.Drawing.Point(693, 318); this.numericUpDown1.Maximum = new decimal(new int[] { 6, 0, 0, 0}); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(41, 20); this.numericUpDown1.TabIndex = 7; this.numericUpDown1.Value = new decimal(new int[] { 2, 0, 0, 0}); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(647, 320); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(40, 13); this.label2.TabIndex = 6; this.label2.Text = "&Pages:"; // // button3 // this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button3.Location = new System.Drawing.Point(647, 161); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(95, 23); this.button3.TabIndex = 4; this.button3.Text = "&Print..."; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button2 // this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button2.Location = new System.Drawing.Point(647, 132); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(95, 23); this.button2.TabIndex = 3; this.button2.Text = "Print Pre&view..."; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button1 // this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button1.Location = new System.Drawing.Point(647, 103); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(95, 23); this.button1.TabIndex = 2; this.button1.Text = "Page &Setup..."; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // printPreviewControl1 // this.printPreviewControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Columns = 2; this.printPreviewControl1.Document = this.listViewPrinter1; this.printPreviewControl1.Location = new System.Drawing.Point(6, 103); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(627, 504); this.printPreviewControl1.TabIndex = 8; this.printPreviewControl1.Zoom = 0.45765611633875108; // // listViewPrinter1 // // // // solidBrushData1.Color = System.Drawing.Color.Maroon; penData1.Brush = solidBrushData1; this.listViewPrinter1.CellFormat.AllBorderPenData = penData1; this.listViewPrinter1.CellFormat.BottomBorderPenData = penData1; this.listViewPrinter1.CellFormat.CanWrap = true; this.listViewPrinter1.CellFormat.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.listViewPrinter1.CellFormat.LeftBorderPenData = penData1; this.listViewPrinter1.CellFormat.MinimumTextHeight = 0F; this.listViewPrinter1.CellFormat.RightBorderPenData = penData1; solidBrushData2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.listViewPrinter1.CellFormat.TextBrushData = solidBrushData2; this.listViewPrinter1.CellFormat.TopBorderPenData = penData1; this.listViewPrinter1.Footer = "{1}\t\tPage #{0}"; // // // this.listViewPrinter1.FooterFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Italic); this.listViewPrinter1.FooterFormat.MinimumTextHeight = 0F; // // // solidBrushData3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); penData2.Brush = solidBrushData3; penData2.Width = 10F; this.listViewPrinter1.GroupHeaderFormat.AllBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.BottomBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Bold); this.listViewPrinter1.GroupHeaderFormat.LeftBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.MinimumTextHeight = 0F; this.listViewPrinter1.GroupHeaderFormat.RightBorderPenData = penData2; this.listViewPrinter1.GroupHeaderFormat.TopBorderPenData = penData2; this.listViewPrinter1.Header = "ListViewPrinterDemo"; // // // solidBrushData4.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); penData3.Brush = solidBrushData4; penData3.Width = 4F; this.listViewPrinter1.HeaderFormat.AllBorderPenData = penData3; linearGradientBrushData1.FromColor = System.Drawing.Color.Aqua; linearGradientBrushData1.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; linearGradientBrushData1.ToColor = System.Drawing.Color.Pink; this.listViewPrinter1.HeaderFormat.BackgroundBrushData = linearGradientBrushData1; this.listViewPrinter1.HeaderFormat.BottomBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.Font = new System.Drawing.Font("Verdana", 24F); this.listViewPrinter1.HeaderFormat.LeftBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.MinimumTextHeight = 0F; this.listViewPrinter1.HeaderFormat.RightBorderPenData = penData3; this.listViewPrinter1.HeaderFormat.TopBorderPenData = penData3; this.listViewPrinter1.IsListHeaderOnEachPage = false; this.listViewPrinter1.ListFont = new System.Drawing.Font("Microsoft Sans Serif", 9F); // // // this.listViewPrinter1.ListHeaderFormat.CanWrap = true; this.listViewPrinter1.ListHeaderFormat.Font = new System.Drawing.Font("Verdana", 12F); this.listViewPrinter1.ListHeaderFormat.MinimumTextHeight = 0F; this.listViewPrinter1.ListView = this.listView1; this.listViewPrinter1.Watermark = "Top Secret"; this.listViewPrinter1.WatermarkColor = System.Drawing.Color.Empty; // // tabPage3 // this.tabPage3.Controls.Add(this.label1); this.tabPage3.Controls.Add(this.propertyGrid1); this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Padding = new System.Windows.Forms.Padding(3); this.tabPage3.Size = new System.Drawing.Size(753, 613); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "Custom Format"; this.tabPage3.UseVisualStyleBackColor = true; // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label1.Location = new System.Drawing.Point(6, 3); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(741, 39); this.label1.TabIndex = 6; this.label1.Text = resources.GetString("label1.Text"); // // propertyGrid1 // this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.propertyGrid1.Location = new System.Drawing.Point(6, 45); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.SelectedObject = this.listViewPrinter2; this.propertyGrid1.Size = new System.Drawing.Size(741, 562); this.propertyGrid1.TabIndex = 5; // // listViewPrinter2 // // // // solidBrushData5.Color = System.Drawing.Color.Gray; penData4.Brush = solidBrushData5; this.listViewPrinter2.CellFormat.AllBorderPenData = penData4; solidBrushData6.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.listViewPrinter2.CellFormat.BackgroundBrushData = solidBrushData6; this.listViewPrinter2.CellFormat.BottomBorderPenData = penData4; this.listViewPrinter2.CellFormat.CanWrap = true; this.listViewPrinter2.CellFormat.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listViewPrinter2.CellFormat.LeftBorderPenData = penData4; this.listViewPrinter2.CellFormat.MinimumTextHeight = 0F; this.listViewPrinter2.CellFormat.RightBorderPenData = penData4; this.listViewPrinter2.CellFormat.TopBorderPenData = penData4; // // // this.listViewPrinter2.FooterFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Italic); this.listViewPrinter2.FooterFormat.MinimumTextHeight = 0F; linearGradientBrushData2.FromColor = System.Drawing.Color.Cornsilk; linearGradientBrushData2.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; linearGradientBrushData2.ToColor = System.Drawing.Color.Gold; penData5.Brush = linearGradientBrushData2; penData5.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot; penData5.Width = 4F; this.listViewPrinter2.FooterFormat.TopBorderPenData = penData5; // // // this.listViewPrinter2.GroupHeaderFormat.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Bold); this.listViewPrinter2.GroupHeaderFormat.MinimumTextHeight = 0F; // // // solidBrushData7.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); penData6.Brush = solidBrushData7; penData6.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; this.listViewPrinter2.HeaderFormat.AllBorderPenData = penData6; solidBrushData8.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))); this.listViewPrinter2.HeaderFormat.BackgroundBrushData = solidBrushData8; this.listViewPrinter2.HeaderFormat.BottomBorderPenData = penData6; this.listViewPrinter2.HeaderFormat.Font = new System.Drawing.Font("Verdana", 24F); this.listViewPrinter2.HeaderFormat.LeftBorderPenData = penData6; this.listViewPrinter2.HeaderFormat.MinimumTextHeight = 0F; this.listViewPrinter2.HeaderFormat.RightBorderPenData = penData6; this.listViewPrinter2.HeaderFormat.TopBorderPenData = penData6; this.listViewPrinter2.IsListHeaderOnEachPage = false; this.listViewPrinter2.ListFont = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // // this.listViewPrinter2.ListHeaderFormat.CanWrap = true; this.listViewPrinter2.ListHeaderFormat.Font = new System.Drawing.Font("Verdana", 12F); this.listViewPrinter2.ListHeaderFormat.MinimumTextHeight = 0F; this.listViewPrinter2.WatermarkColor = System.Drawing.Color.Red; this.listViewPrinter2.WatermarkFont = new System.Drawing.Font("Arial Rounded MT Bold", 72F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(785, 663); this.Controls.Add(this.tabControl1); this.Name = "Form1"; this.Text = "ListViewPrinter Demo"; this.Load += new System.EventHandler(this.Form1_Load); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.tabPage3.ResumeLayout(false); this.ResumeLayout(false); }