ZMSoft.Win.TreeView 1.0.1.39649

dotnet add package ZMSoft.Win.TreeView --version 1.0.1.39649
                    
NuGet\Install-Package ZMSoft.Win.TreeView -Version 1.0.1.39649
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZMSoft.Win.TreeView" Version="1.0.1.39649" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZMSoft.Win.TreeView" Version="1.0.1.39649" />
                    
Directory.Packages.props
<PackageReference Include="ZMSoft.Win.TreeView" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ZMSoft.Win.TreeView --version 1.0.1.39649
                    
#r "nuget: ZMSoft.Win.TreeView, 1.0.1.39649"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ZMSoft.Win.TreeView@1.0.1.39649
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ZMSoft.Win.TreeView&version=1.0.1.39649
                    
Install as a Cake Addin
#tool nuget:?package=ZMSoft.Win.TreeView&version=1.0.1.39649
                    
Install as a Cake Tool

ZMSoft.Win.TreeView

树状图控件,用来展示一个树状图形,数据结构类似TreeView。企业信息管理系统里经常会需要用到的树状图,比如公司组织架构、产品BOM。如何采用最简单的方法来实现一个树状图控件。</br> 代码托管在:github</br> 在Visual Studio可以通过nuget直接引用到项目里,nuget里查找名称为ZMSoft.Win.TreeView,nuget包</br> mes.guru

特性

根节点位置可调整,整体大小可缩放,节点大小、颜色可修改、可设置进度 avatar

使用方法


            TreeView treeView1 = new TreeView();
            treeView1.Space = 100;
            treeView1.NodeWidth = 75;
            treeView1.NodeHeigth = 35;
            treeView1.NodeColor = Color.Gray;
            treeView1.NodeForeColor = Color.Red;
            TreeNode node = treeView1.InitRootNode("Root", RootNodePosition.Left);//创建根节点
           
            TreeNode A = new TreeNode();
            A.Text = "A";

            TreeNode B = new TreeNode();
            B.Text = "B";


            TreeNode C = new TreeNode();
            C.Text = "C";

            TreeNode B1 = new TreeNode();
            B1.Text = "B1";
           
            B1.ProgressColor = Color.Red;
            B1.SetProgress(30);
            node.AddNode(A);
            node.AddNode(B);
            node.AddNode(C);
            B.AddNode(B1);
           
            treeView1.BindNode();

            treeView1.RootNodePosition = RootNodePosition.Top;//根节点在上
            treeView1.BindNode();

            treeView1.RootNodePosition = RootNodePosition.Left;//根节点在左
            treeView1.BindNode();

            treeView1.RootNodePosition = RootNodePosition.Right;//根节点在右
            treeView1.BindNode();

            treeView1.RootNodePosition = RootNodePosition.Bottom;//根节点在下
            treeView1.BindNode();

             treeView1.ZoomIn();//放大
             treeView1.ZoomOut();//缩小

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1.39649 1,469 4/12/2018
1.0.0 1,509 4/10/2018

修改节点位置,节点允许拖动