Source/TabItem.cs
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using DevComponents.Editors;
using DevComponents.UI.ContentManager;
using System;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the Tab on the Tab-Strip control.
/// </summary>
[ToolboxItem(false), ComVisible(false), DesignTimeVisible(false), Designer(typeof(Design.TabItemDesigner))]
public class TabItem : Component, IBlock, ISimpleTab
{
#region Private Properties
private int m_ImageIndex=-1;
private Image m_Image;
private Icon m_Icon;
private string m_Text="";
private TabStrip m_Parent=null;
private bool m_Visible=true;
private Rectangle m_DisplayRectangle=Rectangle.Empty;
private BaseItem m_DotNetBarItem=null;
private Control m_BoundControl=null;
private object m_ItemData=null;
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_BorderColor=Color.Empty;
private Color m_TextColor=Color.Empty;
private string m_Name="";
private eTabItemColor m_PredefinedColor=eTabItemColor.Default;
private object m_Tag=null;
private string m_Tooltip="";
private Rectangle m_CloseButtonBounds = Rectangle.Empty;
private bool m_CloseButtonMouseOver = false;
private bool m_CloseButtonVisible = true;
#endregion
#region Events
/// <summary>
/// Occurs when mouse is pressed over the tab item.
/// </summary>
public event MouseEventHandler MouseDown;
/// <summary>
/// Occurs when mouse button is released over the tab item.
/// </summary>
public event MouseEventHandler MouseUp;
/// <summary>
/// Occurs when mouse hovers over the tab item.
/// </summary>
public event EventHandler MouseHover;
/// <summary>
/// Occurs when mouse enters the tab item.
后面还有 672 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。