Source/Ribbon/RibbonControl.cs
(开头部分) 105KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing.Drawing2D;
using System;
using System.Collections;
using System.Text;
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents Rendering control composed of two parts, RibbonStrip and multiple RibbonBar controls per strip.
/// </summary>
[ToolboxBitmap(typeof(RibbonControl),"Ribbon.RibbonControl.ico"),ToolboxItem(true),Designer(typeof(Design.RibbonControlDesigner)),System.Runtime.InteropServices.ComVisible(false)]
public class RibbonControl:System.Windows.Forms.ContainerControl
{
#region Events
/// <summary>
/// Occurs just before the customize popup menu is displayed and provides the ability to cancel the menu display as well
/// as to add/remove the menu items from the customize popup menu.
/// </summary>
public event CustomizeMenuPopupEventHandler BeforeCustomizeMenuPopup;
/// <summary>
/// Occurs before an item is added to the quick access toolbar as result of user action. This event provides ability to
/// cancel the addition of the item by setting the Cancel=true of event arguments.
/// </summary>
public event CustomizeMenuPopupEventHandler BeforeAddItemToQuickAccessToolbar;
/// <summary>
/// Occurs before an item is removed from the quick access toolbar as result of user action. This event provides ability to
/// cancel the addition of the item by setting the Cancel=true of event arguments.
/// </summary>
public event CustomizeMenuPopupEventHandler BeforeRemoveItemFromQuickAccessToolbar;
/// <summary>
/// Occurs when DotNetBar is looking for translated text for one of the internal text that are
/// displayed on menus, toolbars and customize forms. You need to set Handled=true if you want
/// your custom text to be used instead of the built-in system value.
/// </summary>
public event DotNetBarManager.LocalizeStringEventHandler LocalizeString;
/// <summary>
/// Occurs when Item on ribbon tab strip or quick access toolbar is clicked.
/// </summary>
[Description("Occurs when Item on ribbon tab strip or quick access toolbar is clicked.")]
public event EventHandler ItemClick;
/// <summary>
/// Occurs before Quick Access Toolbar dialog is displayed. This event provides the opportunity to cancel the showing of
/// built-in dialog and display custom customization dialog. You can also set the Dialog property of the event arguments to
/// the custom dialog you want used instead of the DotNetBar system customization dialog.
/// </summary>
public event QatCustomizeDialogEventHandler BeforeQatCustomizeDialog;
/// <summary>
/// Occurs after the Quick Access Toolbar dialog is closed.
/// </summary>
public event QatCustomizeDialogEventHandler AfterQatCustomizeDialog;
后面还有 2628 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。