Source/Ribbon/PanelControl.cs
(开头部分) 40KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections;
using System.Drawing.Text;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents graphical panel control with support for different visual styles and gradients.
/// </summary>
[ToolboxItem(false), Designer(typeof(Design.PanelControlDesigner)), DefaultEvent("Click")]
public class PanelControl : System.Windows.Forms.Panel, IButtonControl
{
#region Private Variables
private ElementStyle m_Style;
private ElementStyle m_StyleMouseOver;
private ElementStyle m_StyleMouseDown;
private ColorScheme m_ColorScheme = null;
private eDotNetBarStyle m_ColorSchemeStyle = eDotNetBarStyle.Office2003;
private bool m_MouseOver = false, m_MouseDown = false;
private Rectangle m_ClientTextRectangle = Rectangle.Empty;
private bool m_TextDockConstrained = true;
private bool m_ShowFocusRectangle;
private string m_Text = "";
// Theme Caching Support
private ThemeTab m_ThemeTab = null;
private DialogResult m_DialogResult = DialogResult.None;
private bool m_IsDefault = false;
private bool m_AntiAlias = true;
private Color m_CanvasColor = Color.White;
protected Bitmap m_ThemeCachedBitmap = null;
private bool m_SuspendPaint = false;
private TextMarkup.BodyElement m_TextMarkup = null;
#endregion
#region Events
/// <summary>
/// Occurs when text markup link is clicked. Markup links can be created using "a" tag, for example:
/// <a name="MyLink">Markup link</a>
/// </summary>
public event MarkupLinkClickEventHandler MarkupLinkClick;
#endregion
/// <summary>
/// Default constructor.
/// </summary>
public PanelControl()
{
if (!ColorFunctions.ColorsLoaded)
{
后面还有 1079 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。