caption.cs

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

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// A box model element that describes a descriptive label associated with an object.
	/// </summary>
	public class caption : boxelement
	{
		public caption() : base("caption") { }

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

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

		protected font _font;

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

		protected margin _margin;

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

		protected para _para;

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

		protected value _value;

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

	}
}

⌨️ 快捷键说明

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