Source/AdvTree/Cell.cs
(开头部分) 44KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using DevComponents.AdvTree.Display;
using DevComponents.DotNetBar;
namespace DevComponents.AdvTree
{
/// <summary>Represents a cell assigned to the Node.</summary>
/// <remarks>
/// <para>The Cell with Index 0 (zero) always exists for a Node and it is a cell that
/// you can interact with through the properties on a node, which are forwarding to the
/// Cell(0), or you can go directly to the Cell(0).</para>
/// <para>When Node has multiple columns defined each column corresponds to Cell in
/// Node's Cells collection. The first Column has Index 0, second Column Index 1 and so
/// forth.</para>
/// <para>Note that there is always at least one Cell in a Node even if multiple
/// columns are not used.</para>
/// </remarks>
[DesignTimeVisible(false),ToolboxItem(false)]
public class Cell:Component
{
#region Private Variables
private ElementStyle m_StyleNormal=null;
private ElementStyle m_StyleDisabled=null;
private ElementStyle m_StyleMouseDown=null;
private ElementStyle m_StyleMouseOver=null;
private ElementStyle m_StyleSelected=null;
private bool m_Enabled=true;
private CellImages m_Images=null;
private Rectangle m_Bounds=Rectangle.Empty;
private Rectangle m_TextBounds=Rectangle.Empty;
private Rectangle m_TextContentBounds=Rectangle.Empty;
private Rectangle m_ImageBounds=Rectangle.Empty;
private Rectangle m_CheckBoxBounds=Rectangle.Empty;
private object m_Tag=null;
private string m_Text="";
private eCellPartAlignment m_ImageAlignment=eCellPartAlignment.NearCenter;
private eCellPartAlignment m_CheckBoxAlignment=eCellPartAlignment.NearCenter;
private bool m_CheckBoxVisible=false;
private bool m_Checked=false;
private bool m_MouseDown=false;
private bool m_MouseOver=false;
private bool m_Selected=false;
private Node m_Parent=null;
private bool m_Visible=true;
private eTreeAction m_ActionSource=eTreeAction.Code;
private eCellPartLayout m_Layout=eCellPartLayout.Default;
private System.Windows.Forms.Cursor m_Cursor=null;
private bool m_WordWrap=false;
private string m_Name="";
private Control m_HostedControl=null;
private Size m_HostedControlSize=Size.Empty;
private bool m_IgnoreHostedControlSizeChange=false;
#endregion
#region Constructor/Dispose
/// <summary>
/// Initializes new instance of Cell class.
后面还有 1349 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。