corner.cs

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

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// A formatting element that describes the appearance of a vertex between two edges.
	/// </summary>
	public class corner : boxelement
	{
		public corner() : base("corner") { }

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

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

		public measurement radius
		{
			set
			{
				this.SetAttribute("radius", 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 + -
显示快捷键?