occur.cs

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

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// An element that describes the constraints over the number of allowable instances for its enclosing container.
	/// </summary>
	public class occur : element_proto
	{
		public occur() : base("occur") { }

		public int initial
		{
			set
			{
				this.SetAttribute("initial", value);
			}
		}

		public int max
		{
			set
			{
				this.SetAttribute("max", value);
			}
		}

		public int min
		{
			set
			{
				this.SetAttribute("min", value);
			}
		}

		protected script _script;

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

		protected extras _extras;

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

	}
}

⌨️ 快捷键说明

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