Source/TabColors.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Drawing;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents colors for the active tab.
/// </summary>
[ToolboxItem(false), TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public class TabColors
{
#region Events
/// <summary>
/// Occurs after color property has changed.
/// </summary>
public event EventHandler ColorChanged;
#endregion
#region Private Variables
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 BackgroundColorBlendCollection m_BackgroundColorBlend = new BackgroundColorBlendCollection();
#endregion
#region Internal Implementation
/// <summary>
/// Creates new instance of the object.
/// </summary>
public TabColors(){}
/// <summary>
/// Gets or sets the background color of the tab when inactive.
/// </summary>
[Browsable(true),Description("Indicates the inactive tab background color."),Category("Style")]
public Color BackColor
{
get {return m_BackColor;}
set
{
m_BackColor=value;
this.Refresh();
}
}
/// <summary>
/// Returns whether property should be serialized.
/// </summary>
/// <returns>true if property should be serialized otherwise false.</returns>
[Browsable(false),EditorBrowsable(EditorBrowsableState.Never)]
public bool ShouldSerializeBackColor()
{
return !m_BackColor.IsEmpty;
}
/// <summary>
/// Resets property to the default value.
/// </summary>
后面还有 188 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。