Source/Events/DockTabClosingEventHandler.cs

(完整代码) 1KB

using System;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents event arguments for DockTabClosing event.
	/// </summary>
	public class DockTabClosingEventArgs:EventArgs
	{
		/// <summary>
		/// Indicates the DockContainerItem that is about to close.
		/// </summary>
		public readonly DockContainerItem DockContainerItem;
		/// <summary>
		/// Provides ability to cancel closing of the DockContainerItem. Default value is false.
		/// </summary>
		public bool Cancel=false;
		/// <summary>
		/// Set to true to automatically remove DockContainerItem from the Bar.Items collection after it is closed. Default value is false
		/// which means that DockContainerItem will be kept in collection but it will be hidden after this event is complete.
		/// </summary>
		public bool RemoveDockTab=false;
		/// <summary>
		/// Returns source of the event: keyboard, mouse or code.
		/// </summary>
		public readonly eEventSource Source;

		/// <summary>
		/// Creates new instance of the class.
		/// </summary>
		/// <param name="item">Reference to DockContainerItem that is about to close</param>
		public DockTabClosingEventArgs(DockContainerItem item, eEventSource source)
		{
			this.DockContainerItem=item;
			this.Source=source;
		}
	}

	/// <summary>
	/// Delegate for DockTabClosing event.
	/// </summary>
	public delegate void DockTabClosingEventHandler(object sender, DockTabClosingEventArgs e);
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。