fill.cs

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

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// A formatting element that applies a color and optional rendered designs to the region enclosed by an object.
	/// </summary>
	public class fill : boxelement
	{
		public fill() : base("fill") { }

		protected color _color;

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

		protected fillType _fillType;

		public fillType fillType
		{
			get
			{
				return _fillType;
			}
			set
			{
				this.RemoveChild(_fillType);
				_fillType = value;
				this.AddChild(_fillType);
			}
		}

	}
}

⌨️ 快捷键说明

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