Source/TabPanel.cs

(开头部分) 7KB

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

using System;
using System.ComponentModel;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents the Tab on the Tab-Strip control.
	/// </summary>
	[ToolboxItem(false),System.Runtime.InteropServices.ComVisible(false)]
	public class TabPanel : System.Windows.Forms.Panel
	{
		private int m_ImageIndex=-1;
		private System.Drawing.Image m_Image;
		private System.Drawing.Icon m_Icon;
		private string m_Text="";
		private TabControl m_Parent=null;
		private bool m_Visible=true;
		private Rectangle m_TabDisplayRectangle=Rectangle.Empty;
		private Color m_BackColor=Color.Empty;
		private Color m_BackColor2=Color.Empty;
		private int m_BackColorGradientAngle=90;
		private Color m_LightBorderColor=Color.Empty;
		private Color m_DarkBorderColor=Color.Empty;
		private Color m_TextColor=Color.Empty;

		/// <summary>
		/// Default constructor.
		/// </summary>
		/// <param name="container">Container object.</param>
		public TabPanel(System.ComponentModel.IContainer container)
		{
			container.Add(this);
		}
		/// <summary>
		/// Default constructor.
		/// </summary>
		public TabPanel()
		{
		}
		/// <summary>
		/// Gets or sets the tab Image index.
		/// </summary>
		[Browsable(true),DevCoBrowsable(true),DefaultValue(-1),Category("Appearance"),Description("Indicates the tab image index")]
		public int ImageIndex
		{
			get {return m_ImageIndex;}
			set
			{
				if(m_ImageIndex==value)
					return;
				m_ImageIndex=value;
				if(m_Parent!=null)
					m_Parent.NeedRecalcSize=true;
				Refresh();
			}
		}
后面还有 238 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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