Source/Ribbon/GalleryGroup.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the popup gallery group that groups set of items inside of gallery into the group.
/// </summary>
[DesignTimeVisible(false), ToolboxItem(false), TypeConverterAttribute(typeof(Design.GalleryGroupConverter))]
public class GalleryGroup : Component
{
#region Private Variables
private string m_Text = "";
private string m_Name = "";
private GalleryContainer m_ParentGallery = null;
private int m_DisplayOrder = 0;
private SubItemsCollection m_Items = null;
#endregion
#region Internal Implementation
/// <summary>
/// Creates new instance of the object.
/// </summary>
public GalleryGroup()
{
m_Items = new SubItemsCollection(null);
m_Items.IgnoreEvents = true;
m_Items.AllowParentRemove = false;
}
/// <summary>
/// Gets or sets title of the group that will be displayed on the group label when on popup gallery.
/// </summary>
[Browsable(true), DefaultValue(""), Editor(typeof(Design.TextMarkupUIEditor), typeof(System.Drawing.Design.UITypeEditor)), Localizable(true), Description("Indicates title of the group that will be displayed on the group label when on popup gallery.")]
public string Text
{
get { return m_Text; }
set
{
if (value == null) value = "";
m_Text = value;
}
}
/// <summary>
/// Gets or sets name of the group that can be used to identify item from the code.
/// </summary>
[Browsable(false), Category("Design"), Description("Indicates the name used to identify the group.")]
public string Name
{
get
{
if (this.Site != null)
m_Name = this.Site.Name;
return m_Name;
}
set
{
if (this.Site != null)
后面还有 56 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。