arc.cs

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

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// A curve that can be used for describing either an arc or an ellipse.
	/// </summary>
	public class arc : graph
	{
		public arc() : base("arc") { }

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

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

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

		protected fill _fill;

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

	}
}

⌨️ 快捷键说明

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