contentarea.cs

来自「PDF文件格式解析库源代码」· CS 代码 · 共 69 行

CS
69
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// An element that describes a region within a page area eligible for receiving content.
	/// </summary>
	public class contentArea : area_Set
	{
		public contentArea() : base("contentArea") { }

		public measurement h
		{
			set
			{
				this.SetAttribute("h", value);
			}
		}

		public measurement w
		{
			set
			{
				this.SetAttribute("w", value);
			}
		}

		public measurement x
		{
			set
			{
				this.SetAttribute("x", value);
			}
		}

		public measurement y
		{
			set
			{
				this.SetAttribute("y", value);
			}
		}

		protected desc _desc;

		public desc desc
		{
			get
			{
				if (_desc == null)
				{
					_desc = new desc();
					this.AddChild(_desc);
				}
				return _desc;
			}
			set
			{
				this.RemoveChild(_desc);
				_desc = value;
				this.AddChild(_desc);
			}
		}

	}
}

⌨️ 快捷键说明

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