Source/Ribbon/RibbonStripContainerItem.cs
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Defines the internal container item for the ribbon strip control.
/// </summary>
[System.ComponentModel.ToolboxItem(false), System.ComponentModel.DesignTimeVisible(false)]
public class RibbonStripContainerItem : ImageItem, IDesignTimeProvider
{
#region Private Variables
private RibbonTabItemContainer m_ItemContainer = null;
private CaptionItemContainer m_CaptionContainer = null;
private SystemCaptionItem m_SystemCaptionItem = null;
private RibbonStrip m_RibbonStrip = null;
private SystemCaptionItem _WindowIcon = null;
private Separator _IconSeparator = null;
#endregion
#region Constructor
/// <summary>
/// Creates new instance of the class and initializes it with the parent RibbonStrip control.
/// </summary>
/// <param name="parent">Reference to parent RibbonStrip control</param>
public RibbonStripContainerItem(RibbonStrip parent)
{
m_RibbonStrip = parent;
// We contain other controls
m_IsContainer = true;
this.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
m_ItemContainer = new RibbonTabItemContainer();
m_ItemContainer.ContainerControl = parent;
m_ItemContainer.GlobalItem = false;
m_ItemContainer.WrapItems = false;
m_ItemContainer.EventHeight = false;
m_ItemContainer.UseMoreItemsButton = false;
m_ItemContainer.Stretch = true;
m_ItemContainer.Displayed = true;
m_ItemContainer.SystemContainer = true;
m_ItemContainer.PaddingTop = 0;
m_ItemContainer.PaddingBottom = 0;
m_ItemContainer.ItemSpacing = 1;
m_CaptionContainer = new CaptionItemContainer();
m_CaptionContainer.ContainerControl = parent;
m_CaptionContainer.GlobalItem = false;
m_CaptionContainer.WrapItems = false;
m_CaptionContainer.EventHeight = false;
m_CaptionContainer.EqualButtonSize = false;
m_CaptionContainer.ToolbarItemsAlign = eContainerVerticalAlignment.Top;
m_CaptionContainer.UseMoreItemsButton = false;
m_CaptionContainer.Stretch = true;
m_CaptionContainer.Displayed = true;
m_CaptionContainer.SystemContainer = true;
m_CaptionContainer.PaddingBottom = 0;
后面还有 405 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。