editcontrol.cs

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

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

namespace AnotherPDFLib.XFA
{
	public abstract class editcontrol : control
	{
		public editcontrol(string name) : base(name) { }

		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 border _border;

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

	}
}

⌨️ 快捷键说明

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