Source/TabControl.cs

(开头部分) 41KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Reflection;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Summary description for TabControl.
	/// </summary>
	[ToolboxItem(true), Designer(typeof(Design.TabControlDesigner))]
	public class TabControl : System.Windows.Forms.Control,ISupportInitialize
	{
		#region Events
		/// <summary>
		/// Occurs when selected tab changes.
		/// </summary>
		public event TabStrip.SelectedTabChangedEventHandler SelectedTabChanged;
		/// <summary>
		/// Occurs before selected tab changes and gives you opportunity to cancel the change.
		/// </summary>
		public event TabStrip.SelectedTabChangingEventHandler SelectedTabChanging;
		/// <summary>
		/// Occurs when tab is dragged by user.
		/// </summary>
		public event TabStrip.TabMovedEventHandler TabMoved;
		/// <summary>
		/// Occurs when the user navigates back using the back arrow.
		/// </summary>
		public event TabStrip.UserActionEventHandler NavigateBack;
		/// <summary>
		/// Occurs when the user navigates forward using the forward arrow.
		/// </summary>
		public event TabStrip.UserActionEventHandler NavigateForward;
		/// <summary>
		/// Occurs when tab item is closing.
		/// </summary>
		public event TabStrip.UserActionEventHandler TabItemClose;
		/// <summary>
		/// Occurs when tab item is added to the tabs collection.
		/// </summary>
		public event EventHandler TabItemOpen;
		/// <summary>
		/// Occurs before control or item attached to the tab is displayed.
		/// </summary>
		public event EventHandler BeforeTabDisplay;
		/// <summary>
		/// Occurs after tab item has been removed from tabs collection.
		/// </summary>
		public event EventHandler TabRemoved;
		#endregion

        #region Private Variables & Constructor, Dispose
        private DevComponents.DotNetBar.TabStrip tabStrip1;
        //private int m_SelectedTabIndex=0;
		private System.Windows.Forms.Timer m_ClickTimer=null;
        private bool m_AutoCloseTabs = false;
后面还有 1201 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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