validate.cs

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

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

namespace AnotherPDFLib.XFA
{
	/// <summary>
	/// A automation element that controls validation of user-supplied data.
	/// </summary>
	public class validate : element_id_extras
	{
		public validate() : base("validate") { }

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

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

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

		protected message _message;

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

		protected picture _picture;

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

		protected script _script;

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

	}
}

⌨️ 快捷键说明

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