⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textinputtag.cs

📁 C#编写的在线用户统计、在线编辑器、验证码图片
💻 CS
字号:
/* 
 * TextInputTag.cs @Microsoft Visual Studio 2008 <.NET Framework 2.0 (or Higher)>
 * AfritXia
 * 2008-02-03
 * 
 * Copyright(c) http://www.AfritXia.NET/
 * 
 */

using System;

using Net.AfritXia.Web.RssFoundation.RssChannel.RssTextInput;
using Net.AfritXia.Web.RssFoundation.RssGeneric;

namespace Net.AfritXia.Web.RssFoundation.RssChannel
{
	/// <summary>
	/// textInput 标记
	/// </summary>
	public class TextInputTag : RssTagBase
	{
		#region 类构造器
		/// <summary>
		/// 类默认构造器
		/// </summary>
		public TextInputTag()
			: base()
		{
		}
		#endregion

		/// <summary>
		/// 获取标记名称
		/// </summary>
		protected override string TagName
		{
			get
			{
				return "textInput";
			}
		}

		/// <summary>
		/// 空标记值
		/// </summary>
		public override object Value
		{
			set
			{
				throw new NotSupportedException("不能为该标记赋值 ( Cannot put value for this Tag )");
			}

			get
			{
				return null;
			}
		}

		/// <summary>
		/// 设置或获取链接, LinkTag 属性的简化操作形式
		/// </summary>
		public string Link
		{
			set
			{
				this.LinkTag = new LinkTag(value);
			}

			get
			{
				if (this.LinkTag == null)
					return null;

				return this.LinkTag.Value;
			}
		}

		/// <summary>
		/// 设置或获取 link 标记
		/// </summary>
		public LinkTag LinkTag
		{
			set
			{
				if (value == null)
				{
					base.RemoveChildTag<LinkTag>();
					return;
				}

				base.AddChildTag(value);
			}

			get
			{
				return base.GetChildTag<LinkTag>();
			}
		}

		/// <summary>
		/// 设置或获取链接, TitleTag 属性的简化操作形式
		/// </summary>
		public string Title
		{
			set
			{
				this.TitleTag = new TitleTag(value);
			}

			get
			{
				if (this.TitleTag == null)
					return null;

				return this.TitleTag.Value;
			}
		}

		/// <summary>
		/// 设置或获取 title 标记
		/// </summary>
		public TitleTag TitleTag
		{
			set
			{
				if (value == null)
				{
					base.RemoveChildTag<TitleTag>();
					return;
				}

				base.AddChildTag(value);
			}

			get
			{
				return base.GetChildTag<TitleTag>();
			}
		}

		/// <summary>
		/// 设置或获取描述说明信息, DescriptionTag 属性的简化操作形式
		/// </summary>
		public string Description
		{
			set
			{
				this.DescriptionTag = new DescriptionTag(value);
			}

			get
			{
				if (this.DescriptionTag == null)
					return null;

				return this.DescriptionTag.Value;
			}
		}

		/// <summary>
		/// 设置或获取 description 标记
		/// </summary>
		public DescriptionTag DescriptionTag
		{
			set
			{
				if (value == null)
				{
					base.RemoveChildTag<DescriptionTag>();
					return;
				}

				base.AddChildTag(value);
			}

			get
			{
				return base.GetChildTag<DescriptionTag>();
			}
		}

		/// <summary>
		/// 设置或获取名称, NameTag 属性的简化操作形式
		/// </summary>
		public string Name
		{
			set
			{
				this.NameTag = new NameTag(value);
			}

			get
			{
				if (this.NameTag == null)
					return null;

				return this.NameTag.Value;
			}
		}

		/// <summary>
		/// 设置或获取 name 标记
		/// </summary>
		public NameTag NameTag
		{
			set
			{
				if (value == null)
				{
					base.RemoveChildTag<NameTag>();
					return;
				}

				base.AddChildTag(value);
			}

			get
			{
				return base.GetChildTag<NameTag>();
			}
		}
	}
}

⌨️ 快捷键说明

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