arraypage.cs

来自「用C#實現能產生PDF格式文件的源碼」· CS 代码 · 共 47 行

CS
47
字号
using System;
using System.Diagnostics;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using PdfSharp.Pdf;
using PdfSharp.Pdf.Advanced;
using PdfSharp.Pdf.Internal;

namespace PdfSharp.Explorer.Pages
{
  /// <summary>
  /// Viewer for PdfArray objects.
  /// </summary>
  public class ArrayPage : PageBase
  {
    private System.ComponentModel.Container components = null;

    ArrayPage()
    {
      InitializeComponent();
    }

    public ArrayPage(ExplorerPanel explorer)
    {
      this.explorer = explorer;
      InitializeComponent();
    }
    private System.Windows.Forms.ColumnHeader clmIndex;
    private System.Windows.Forms.ColumnHeader clmValue;
    private System.Windows.Forms.ColumnHeader clmIndirect;
    private System.Windows.Forms.ColumnHeader clmType;
    private System.Windows.Forms.ListView lvItems;
    private System.Windows.Forms.TextBox tbxObjectID;
    private System.Windows.Forms.Label lblObjectID;
    private System.Windows.Forms.Label lblType;
    private System.Windows.Forms.Label txtType;
    ExplorerPanel explorer;

    internal override void SetObject(PdfItem obj)
    {
      PdfArray array = (PdfArray)obj;

      if (PdfInternals.GetObjectID(array).IsEmpty)
        this.tbxObjectID.Text = "玠irect

⌨️ 快捷键说明

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