⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 explorerpanel.cs

📁 用C#實現能產生PDF格式文件的源碼
💻 CS
📖 第 1 页 / 共 2 页
字号:
      this.tbcNavigation.Dock = System.Windows.Forms.DockStyle.Fill;
      this.tbcNavigation.Font = new System.Drawing.Font("Verdana", 8.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
      this.tbcNavigation.Location = new System.Drawing.Point(3, 0);
      this.tbcNavigation.Multiline = true;
      this.tbcNavigation.Name = "tbcNavigation";
      this.tbcNavigation.SelectedIndex = 0;
      this.tbcNavigation.Size = new System.Drawing.Size(195, 630);
      this.tbcNavigation.TabIndex = 0;
      this.tbcNavigation.SelectedIndexChanged += new System.EventHandler(this.tbcNavigation_SelectedIndexChanged);
      // 
      // tpInfo
      // 
      this.tpInfo.Controls.Add(this.lbxInfo);
      this.tpInfo.Location = new System.Drawing.Point(24, 4);
      this.tpInfo.Name = "tpInfo";
      this.tpInfo.Size = new System.Drawing.Size(167, 622);
      this.tpInfo.TabIndex = 2;
      this.tpInfo.Tag = "Info";
      this.tpInfo.Text = "Information";
      // 
      // lbxInfo
      // 
      this.lbxInfo.Dock = System.Windows.Forms.DockStyle.Fill;
      this.lbxInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
      this.lbxInfo.Items.AddRange(new object[] {
                                                 "Description",
                                                 "Security",
                                                 "Initial View",
                                                 "(Fonts)",
                                                 "(Annotations)",
                                                 "(Images)",
                                                 "ect..."});
      this.lbxInfo.Location = new System.Drawing.Point(0, 0);
      this.lbxInfo.Name = "lbxInfo";
      this.lbxInfo.Size = new System.Drawing.Size(167, 615);
      this.lbxInfo.TabIndex = 0;
      // 
      // tpObjects
      // 
      this.tpObjects.Controls.Add(this.lvObjects);
      this.tpObjects.Location = new System.Drawing.Point(24, 4);
      this.tpObjects.Name = "tpObjects";
      this.tpObjects.Size = new System.Drawing.Size(167, 622);
      this.tpObjects.TabIndex = 0;
      this.tpObjects.Tag = "Objects";
      this.tpObjects.Text = "Objects";
      // 
      // lvObjects
      // 
      this.lvObjects.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                                this.id,
                                                                                this.type});
      this.lvObjects.Dock = System.Windows.Forms.DockStyle.Fill;
      this.lvObjects.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
      this.lvObjects.FullRowSelect = true;
      this.lvObjects.GridLines = true;
      this.lvObjects.HideSelection = false;
      this.lvObjects.Location = new System.Drawing.Point(0, 0);
      this.lvObjects.MultiSelect = false;
      this.lvObjects.Name = "lvObjects";
      this.lvObjects.RightToLeft = System.Windows.Forms.RightToLeft.No;
      this.lvObjects.Size = new System.Drawing.Size(167, 622);
      this.lvObjects.TabIndex = 0;
      this.lvObjects.View = System.Windows.Forms.View.Details;
      this.lvObjects.SelectedIndexChanged += new System.EventHandler(this.lvObjects_SelectedIndexChanged);
      // 
      // id
      // 
      this.id.Text = "ID";
      this.id.Width = 57;
      // 
      // type
      // 
      this.type.Text = "Type";
      this.type.Width = 72;
      // 
      // tpPages
      // 
      this.tpPages.Controls.Add(this.lvPages);
      this.tpPages.Location = new System.Drawing.Point(24, 4);
      this.tpPages.Name = "tpPages";
      this.tpPages.Size = new System.Drawing.Size(167, 622);
      this.tpPages.TabIndex = 3;
      this.tpPages.Tag = "Pages";
      this.tpPages.Text = "Pages";
      // 
      // lvPages
      // 
      this.lvPages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                              this.clmPage,
                                                                              this.clmSize});
      this.lvPages.Dock = System.Windows.Forms.DockStyle.Fill;
      this.lvPages.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
      this.lvPages.FullRowSelect = true;
      this.lvPages.HideSelection = false;
      this.lvPages.Location = new System.Drawing.Point(0, 0);
      this.lvPages.MultiSelect = false;
      this.lvPages.Name = "lvPages";
      this.lvPages.Size = new System.Drawing.Size(167, 622);
      this.lvPages.TabIndex = 0;
      this.lvPages.View = System.Windows.Forms.View.Details;
      this.lvPages.SelectedIndexChanged += new System.EventHandler(this.lvPages_SelectedIndexChanged);
      // 
      // clmPage
      // 
      this.clmPage.Text = "Page";
      // 
      // clmSize
      // 
      this.clmSize.Text = "Size";
      this.clmSize.Width = 100;
      // 
      // pnlNavigation
      // 
      this.pnlNavigation.Controls.Add(this.tbcNavigation);
      this.pnlNavigation.Dock = System.Windows.Forms.DockStyle.Left;
      this.pnlNavigation.DockPadding.Left = 3;
      this.pnlNavigation.DockPadding.Right = 2;
      this.pnlNavigation.Location = new System.Drawing.Point(0, 0);
      this.pnlNavigation.Name = "pnlNavigation";
      this.pnlNavigation.Size = new System.Drawing.Size(200, 630);
      this.pnlNavigation.TabIndex = 1;
      // 
      // splitter
      // 
      this.splitter.BackColor = System.Drawing.SystemColors.Control;
      this.splitter.Location = new System.Drawing.Point(200, 0);
      this.splitter.Name = "splitter";
      this.splitter.Size = new System.Drawing.Size(3, 630);
      this.splitter.TabIndex = 2;
      this.splitter.TabStop = false;
      // 
      // pnlWorkArea
      // 
      this.pnlWorkArea.BackColor = System.Drawing.SystemColors.Control;
      this.pnlWorkArea.Controls.Add(this.tbcMain);
      this.pnlWorkArea.Dock = System.Windows.Forms.DockStyle.Fill;
      this.pnlWorkArea.DockPadding.Left = 2;
      this.pnlWorkArea.DockPadding.Right = 4;
      this.pnlWorkArea.Location = new System.Drawing.Point(203, 0);
      this.pnlWorkArea.Name = "pnlWorkArea";
      this.pnlWorkArea.Size = new System.Drawing.Size(787, 630);
      this.pnlWorkArea.TabIndex = 3;
      // 
      // tbcMain
      // 
      this.tbcMain.Controls.Add(this.tpData);
      this.tbcMain.Controls.Add(this.tpPdf);
      this.tbcMain.Dock = System.Windows.Forms.DockStyle.Fill;
      this.tbcMain.Location = new System.Drawing.Point(2, 0);
      this.tbcMain.Name = "tbcMain";
      this.tbcMain.SelectedIndex = 0;
      this.tbcMain.Size = new System.Drawing.Size(781, 630);
      this.tbcMain.TabIndex = 0;
      this.tbcMain.SelectedIndexChanged += new System.EventHandler(this.tbcMain_SelectedIndexChanged);
      // 
      // tpData
      // 
      this.tpData.Location = new System.Drawing.Point(4, 22);
      this.tpData.Name = "tpData";
      this.tpData.Size = new System.Drawing.Size(773, 604);
      this.tpData.TabIndex = 0;
      this.tpData.Text = "Data";
      // 
      // tpPdf
      // 
      this.tpPdf.Location = new System.Drawing.Point(4, 22);
      this.tpPdf.Name = "tpPdf";
      this.tpPdf.Size = new System.Drawing.Size(773, 604);
      this.tpPdf.TabIndex = 1;
      this.tpPdf.Text = "PDF";
      // 
      // ExplorerPanel
      // 
      this.BackColor = System.Drawing.SystemColors.Control;
      this.Controls.Add(this.pnlWorkArea);
      this.Controls.Add(this.splitter);
      this.Controls.Add(this.pnlNavigation);
      this.Name = "ExplorerPanel";
      this.Size = new System.Drawing.Size(990, 630);
      this.tbcNavigation.ResumeLayout(false);
      this.tpInfo.ResumeLayout(false);
      this.tpObjects.ResumeLayout(false);
      this.tpPages.ResumeLayout(false);
      this.pnlNavigation.ResumeLayout(false);
      this.pnlWorkArea.ResumeLayout(false);
      this.tbcMain.ResumeLayout(false);
      this.ResumeLayout(false);

    }
    #endregion

    private void tbcNavigation_SelectedIndexChanged(object sender, System.EventArgs e)
    {
      ActivatePage(this.tbcNavigation.SelectedTab.Tag.ToString());
    }

    private void lvObjects_SelectedIndexChanged(object sender, System.EventArgs e)
    {
      ListView.SelectedListViewItemCollection items = this.lvObjects.SelectedItems;
      if (items.Count > 0)
      {
        ListViewItem item = items[0];
        this.process.Navigator.SetNext((PdfObject)item.Tag);
        ActivateTab((PdfObject)item.Tag);
      }
    }

    private void lvPages_SelectedIndexChanged(object sender, System.EventArgs e)
    {
      ListView.SelectedListViewItemCollection items = this.lvPages.SelectedItems;
      if (items.Count > 0)
      {
        ListViewItem item = items[0];
        this.process.Navigator.SetNext((PdfObject)item.Tag);
        ActivateTab((PdfObject)item.Tag);
      }
    }

    private void tbcMain_SelectedIndexChanged(object sender, System.EventArgs e)
    {
      ActivateTab((PdfObject)Process.Navigator.Current);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -