edge.cs

来自「PDF文档生成解析使用的库,可以用来改写自己的文档格式」· CS 代码 · 共 61 行

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// A formatting element that describes an arc, line, or one side of a border or rectangle.
	/// </summary>
	public class edge : boxelement
	{
		public edge() : base("edge") { }

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

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

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

		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);
			}
		}

	}
}

⌨️ 快捷键说明

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