Source/Ribbon/RibbonStrip.cs
(开头部分) 69KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Collections;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents RibbonStrip control internally used by RibbonControl.
/// </summary>
[ToolboxItem(false),ComVisible(false)]
public class RibbonStrip:ItemControl
{
#region Private Variables & Constructor
private RibbonStripContainerItem m_StripContainer = null;
//private GenericItemContainer m_ItemContainer=null;
private RibbonTabItemGroupCollection m_Groups=null;
private int m_TabGroupHeight=14;
private bool m_TabGroupsVisible=false;
private Font m_DefaultGroupFont=null;
private Font m_DefaultGroupFontAuto=null;
private int m_CaptionHeight = 0;
private bool m_CaptionVisible = false;
private bool m_AutoExpand = true;
//private GenericItemContainer m_CaptionContainer = null;
//private SystemCaptionItem m_SystemCaptionItem = null;
private int m_RibbonStripIndent = 46;
private Rectangle m_CaptionBounds = Rectangle.Empty;
private Rectangle m_QuickToolbarBounds = Rectangle.Empty;
private Rectangle m_SystemCaptionItemBounds = Rectangle.Empty;
private Rectangle[] m_CaptionTextBounds = null;
private Font m_CaptionFont = null;
private bool m_CanCustomize = true;
private ElementStyle m_DefaultBackgroundStyle = new ElementStyle();
private bool m_KeyTipsEnabled = true;
private string m_TitleText = "";
private bool m_CanSupportGlass = false;
public RibbonStrip()
{
this.SetStyle(ControlStyles.StandardDoubleClick, true);
m_StripContainer = new RibbonStripContainerItem(this);
m_StripContainer.GlobalItem = false;
m_StripContainer.ContainerControl = this;
m_StripContainer.Displayed = true;
m_StripContainer.SetOwner(this);
m_StripContainer.Style = eDotNetBarStyle.Office2003;
this.SetBaseItemContainer(m_StripContainer);
//m_ItemContainer=new GenericItemContainer();
//m_ItemContainer.GlobalItem=false;
//m_ItemContainer.ContainerControl=this;
//m_ItemContainer.WrapItems=false;
//m_ItemContainer.EventHeight=false;
//m_ItemContainer.UseMoreItemsButton=false;
//m_ItemContainer.Stretch=true;
//m_ItemContainer.Displayed=true;
后面还有 1817 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。