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

📄 usageapplication.cs

📁 PDF文档生成解析使用的库,可以用来改写自己的文档格式
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;

namespace AnotherPDFLib
{
	/// <summary>
	/// A usage application dictionary specifies the rules for which usage entries should
	/// be used by viewer applications to automatically manipulate the state of optional
	/// content groups, which groups should be affected, and under which circumstances.
	/// </summary>
	public partial class UsageApplication : PdfDictionary
	{
		/// <summary>
		/// A name defining the situation in which this usage application dictionary
		/// should be used. May be View, Print, or Export.
		/// </summary>
		public UsageEvent Event
		{
			get
			{
				PdfName @event = this["Event"] as PdfName;
				if (@event != null)
				{
					return (UsageEvent)Enum.Parse(typeof(UsageEvent), @event.Name);
				}
				return default(UsageEvent);
			}
			set
			{
				this["Event"] = new PdfName(value.ToString());
			}
		}

		/// <summary>
		/// An array listing the optional content groups that should have their
		/// states automatically managed based on information in their usage dictionary.
		/// Default value: an empty array, indicating that no groups are affected.
		/// </summary>
		public PdfArray OCGs
		{
			get
			{
				PdfArray ocgs = this["OCGs"] as PdfArray;
				if (ocgs == null)
				{
					ocgs = new PdfArray();
					this["OCGs"] = ocgs;
				}
				return ocgs;
			}
			set
			{
				this["OCGs"] = value;
			}
		}

		/// <summary>
		/// An array of names, each of which corresponds to a usage dictionary entry.
		/// When managing the states of the optional content groups
		/// in the OCGs array, each of the corresponding categories in the group's usage dictionary
		/// should be considered.
		/// </summary>
		public PdfArray Category
		{
			get
			{
				PdfArray category = this["Category"] as PdfArray;
				if (category == null)
				{
					category = new PdfArray();
					this["Category"] = category;
				}
				return category;
			}
			set
			{
				this["Category"] = value;
			}
		}

	}
}

⌨️ 快捷键说明

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