Source/LabelItem.cs
(开头部分) 64KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
using DevComponents.DotNetBar.Rendering;
using System.Windows.Forms;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Summary description for LabelItem.
/// </summary>
[ToolboxItem(false), DesignTimeVisible(false), DefaultEvent("Click"), Designer(typeof(Design.SimpleBaseItemDesigner))]
public class LabelItem:BaseItem
{
#region Private Variables
internal const eBorderSide DEFAULT_BORDERSIDE = eBorderSide.Top | eBorderSide.Bottom | eBorderSide.Left | eBorderSide.Right;
private eBorderType m_BorderType=eBorderType.None;
private Color m_BackColor=Color.Empty;
private Color m_ForeColor=SystemColors.ControlText;
private Color m_SingleLineColor=SystemColors.ControlDark;
private bool m_SingleLineColorCustom=false;
private System.Drawing.StringAlignment m_TextAlignment=System.Drawing.StringAlignment.Near;
private System.Drawing.StringAlignment m_TextLineAlignment=System.Drawing.StringAlignment.Center;
private System.Drawing.Font m_Font=null;
private bool m_DividerStyle=false;
private int m_PaddingLeft=0, m_PaddingRight=0, m_PaddingTop=0, m_PaddingBottom=0;
private int m_Width=0, m_Height=0;
private bool m_WordWrap=false;
private eImagePosition m_ImagePosition;
private System.Drawing.Image m_Image;
private System.Drawing.Image m_ImageCachedIdx=null;
private System.Drawing.Image m_DisabledImage = null;
private System.Drawing.Icon m_DisabledIcon = null;
System.Drawing.Icon m_Icon=null;
private int m_ImageIndex=-1;
private ItemPaintArgs _ItemPaintArgs=null;
private const int IMAGETEXT_SPACING=2;
private eBorderSide m_BorderSide = DEFAULT_BORDERSIDE;
private bool m_ShowPrefix = false;
internal bool SuspendPaint = false;
#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
#region Internal Implementation
public LabelItem():this("","") {}
public LabelItem(string sName):this(sName,""){}
public LabelItem(string sName, string ItemText):base(sName,ItemText)
{
//this.CanCustomize=false;
this.IsAccessible=false;
后面还有 1677 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。