Source/Ribbon/ItemControl.cs
(开头部分) 105KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using DevComponents.DotNetBar.Design;
using DevComponents.DotNetBar.Rendering;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents base control for bars.
/// </summary>
[ToolboxItem(false), ComVisible(false), DefaultEvent("ItemClick")]
public abstract class ItemControl: ContainerControl,
IOwner, IOwnerMenuSupport, IMessageHandlerClient, IOwnerItemEvents,
IThemeCache, IOwnerLocalize, IBarDesignerServices,
IKeyTipsRenderer, IRenderingSupport, IAccessibilitySupport, IRibbonCustomize, IBarImageSize, IKeyTipsControl
{
// Events
#region Event Definition
/// <summary>
/// Occurs when Checked property of an button has changed.
/// </summary>
public event EventHandler ButtonCheckedChanged;
/// <summary>
/// Represents the method that will handle the ItemRemoved event.
/// </summary>
public delegate void ItemRemovedEventHandler(object sender, ItemRemovedEventArgs e);
/// <summary>
/// Occurs when Item is clicked.
/// </summary>
[Description("Occurs when Item is clicked.")]
public event EventHandler ItemClick;
/// <summary>
/// Occurs when popup of type container is loading.
/// </summary>
[Description("Occurs when popup of type container is loading.")]
public event EventHandler PopupContainerLoad;
/// <summary>
/// Occurs when popup of type container is unloading.
/// </summary>
[Description("Occurs when popup of type container is unloading.")]
public event EventHandler PopupContainerUnload;
/// <summary>
/// Occurs when popup item is about to open.
/// </summary>
[Description("Occurs when popup item is about to open.")]
public event EventHandler PopupOpen;
/// <summary>
/// Occurs when popup item is closing.
后面还有 3295 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。