Source/Ribbon/RibbonTabItem.cs
(开头部分) 25KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.ComponentModel;
using System.Drawing;
using System;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents Rendering Tab used on RibbonControl.
/// </summary>
[ToolboxItem(false),DesignTimeVisible(false),Designer(typeof(Design.RibbonTabItemDesigner))]
public class RibbonTabItem:ButtonItem
{
#region Private Variables & Constructor
private RibbonPanel m_Panel=null;
private RibbonTabItemGroup m_Group=null;
private eRibbonTabColor m_ColorTable = eRibbonTabColor.Default; private string m_CashedColorTableName = "Default";
private bool m_ReducedSize = false;
private int m_PaddingHorizontal = 0;
#endregion
#region Internal Implementation
/// <summary>
/// Gets or sets the additional padding added around the tab item in pixels. Default value is 0.
/// </summary>
[Browsable(true), DefaultValue(0), Category("Layout"), Description("Indicates additional padding added around the tab item in pixels.")]
public int PaddingHorizontal
{
get { return m_PaddingHorizontal; }
set
{
m_PaddingHorizontal = value;
UpdateTabAppearance();
}
}
/// <summary>
/// Selects the tab.
/// </summary>
public void Select()
{
this.Checked = true;
}
/// <summary>
/// Gets or sets whether size of the tab has been reduced below the default calculated size.
/// </summary>
internal bool ReducedSize
{
get { return m_ReducedSize; }
set { m_ReducedSize = value; }
}
///// <summary>
///// Gets or sets the custom color name. Name specified here must be represented by the coresponding object with the same name that is part
///// of the Office2007ColorTable.RibbonTabItemColors collection. See documentation for Office2007ColorTable.RibbonTabItemColors for more information.
///// If color table with specified name cannot be found default color will be used. Valid settings for this property override any
///// setting to the Color property.
///// Applies to items with Office 2007 style only.
///// </summary>
//[Browsable(true), DefaultValue(""), Category("Appearance"), Description("Indicates custom color table name for the item when Office 12 style is used.")]
//public string CustomColorName
//{
后面还有 649 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。