Source/PanelEx.cs
(开头部分) 50KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing.Text;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents graphical panel control with support for different visual styles and gradients.
/// </summary>
[ToolboxItem(true),Designer(typeof(Design.PanelExDesigner)),DefaultEvent("Click")]
public class PanelEx : System.Windows.Forms.Panel, IButtonControl, Controls.INonClientControl
{
#region Private Variables
private ItemStyle m_Style;
private ItemStyle m_StyleMouseOver;
private ItemStyle 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;
private bool m_RenderText = true;
private bool m_RightToLeftLayout = false;
private bool m_MarkupUsesStyleAlignment = false;
private Controls.NonClientPaintHandler m_NCPainter = 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 PanelEx()
后面还有 1385 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。