using System.ComponentModel; namespace Dongke.WinForm.Controls { /// /// TextPaste 事件参数 /// public class TextPasteEventArgs : CancelEventArgs { #region 成员变量 /// /// 待粘贴的文本 /// private string _pasteText = null; #endregion #region 构造函数 /// /// TextPaste 事件参数 /// public TextPasteEventArgs() : base() { } /// /// TextPaste 事件参数 /// /// 指示是否应取消事件的值 public TextPasteEventArgs(bool cancel) : base(cancel) { } /// /// TextPaste 事件参数 /// /// 待粘贴的文本 public TextPasteEventArgs(string pasteText) : base() { this._pasteText = pasteText; } /// /// TextPaste 事件参数 /// /// 待粘贴的文本 /// 指示是否应取消事件的值 public TextPasteEventArgs(string pasteText, bool cancel) : base(cancel) { this._pasteText = pasteText; } #endregion #region 属性 /// /// 获取待粘贴的文本 /// public string PasteText { get { return this._pasteText; } internal set { this._pasteText = value; } } #endregion } }