Source/Ribbon/RibbonTabItemGroup.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents a group RibbonTabItem objects are assigned to.
/// </summary>
[DesignTimeVisible(false),ToolboxItem(false),TypeConverterAttribute(typeof(Design.RibbonTabItemGroupConverter))]
public class RibbonTabItemGroup:Component
{
#region Private Variables & Constructor
private ElementStyle m_Style=null;
private string m_GroupTitle="";
private RibbonStrip m_ParentRibbonStrip=null;
internal ArrayList DisplayPositions=new ArrayList();
private eRibbonTabGroupColor m_Color = eRibbonTabGroupColor.Default;
private string m_Name = "";
private string m_CustomColorName = "";
public RibbonTabItemGroup()
{
m_Style=new ElementStyle();
m_Style.StyleChanged+=new EventHandler(StyleChanged);
}
#endregion
#region Internal Implementation
/// <summary>
/// Gets or sets the predefined color of the group. Color specified here applies to groups with Office 12 style only. It does not have
/// any effect on other styles. Default value is eRibbonTabGroupColor.Default
/// </summary>
[Browsable(true), DefaultValue(eRibbonTabGroupColor.Default), Category("Appearance"), Description("Indicates predefined color of the group when Office 12 style is used.")]
public eRibbonTabGroupColor Color
{
get { return m_Color; }
set
{
if (m_Color != value)
{
m_Color = value;
if (this.ParentRibbonStrip != null)
this.ParentRibbonStrip.Invalidate();
}
}
}
/// <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.RibbonTabGroupColors collection. See documentation for Office2007ColorTable.RibbonTabGroupColors 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.
/// </summary>
[Browsable(true), DevCoBrowsable(false), DefaultValue(""), Category("Appearance"), Description("Indicates custom color table name for the button when Office 2007 style is used.")]
public string CustomColorName
{
get { return m_CustomColorName; }
set
后面还有 188 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。