Little Registry Cleaner/Common Tools/TreeViewAdv/Tree/TreeViewAdv.cs
(开头部分) 30KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Little Registry Cleaner
Copyright (C) 2008 Little Apps (http://www.little-apps.org/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using System.Security.Permissions;
using System.Threading;
using System.Windows.Forms;
using System.Collections;
using Common_Tools.TreeViewAdv.Tree.NodeControls;
using Common_Tools.TreeViewAdv.Threading;
namespace Common_Tools.TreeViewAdv.Tree
{
/// <summary>
/// Extensible advanced <see cref="TreeView"/> implemented in 100% managed C# code.
/// Features: Model/View architecture. Multiple column per node. Ability to select
/// multiple tree nodes. Different types of controls for each node column:
/// <see cref="CheckBox"/>, Icon, Label... Drag and Drop highlighting. Load on
/// demand of nodes. Incremental search of nodes.
/// </summary>
public partial class TreeViewAdv : Control
{
private const int LeftMargin = 7;
internal const int ItemDragSensivity = 4;
private readonly int _columnHeaderHeight;
private const int DividerWidth = 9;
private const int DividerCorrectionGap = -2;
private Pen _linePen;
private Pen _markPen;
private bool _suspendUpdate;
private bool _needFullUpdate;
private bool _fireSelectionEvent;
private NodePlusMinus _plusMinus;
private ToolTip _toolTip;
private DrawContext _measureContext;
private TreeColumn _hotColumn;
private IncrementalSearch _search;
private List<TreeNodeAdv> _expandingNodes = new List<TreeNodeAdv>();
后面还有 1157 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。