dictionarypage.cs

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

CS
50
字号
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 PdfDictionary objects.
  /// </summary>
  public class DictionaryPage : PageBase
  {
    private System.ComponentModel.Container components = null;

    public DictionaryPage(ExplorerPanel explorer)
    {
      this.explorer = explorer;
      InitializeComponent();
    }

    private System.Windows.Forms.ListView lvKeys;
    private System.Windows.Forms.ColumnHeader clmKey;
    private System.Windows.Forms.ColumnHeader clmValue;
    private System.Windows.Forms.ColumnHeader clmType;
    private System.Windows.Forms.ColumnHeader clmIndirect;
    private System.Windows.Forms.RichTextBox tbxStream;
    private System.Windows.Forms.Panel pnlTop;
    private System.Windows.Forms.Splitter splitter;
    private System.Windows.Forms.Panel pnlBottom;
    private System.Windows.Forms.RadioButton btnHexdump;
    private System.Windows.Forms.RadioButton btnRawString;
    private System.Windows.Forms.CheckBox btnNoFilter;
    private System.Windows.Forms.Label lblObjectID;
    private System.Windows.Forms.TextBox tbxObjectID;
    private System.Windows.Forms.Label txtType;
    private System.Windows.Forms.Label lblType;
    ExplorerPanel explorer;

    internal override void SetObject(PdfItem obj)
    {
      PdfDictionary dict = (PdfDictionary)obj;

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

⌨️ 快捷键说明

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