文件名称:TriStateTreeView_Src_1.0.0.4
- 所属分类:
- .net编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 84kb
- 下载次数:
- 0次
- 提 供 者:
- s***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
.Net fr a mework提供了TreeView 控件,但该控件不支持三态的形式。所谓三态就是带CheckBox的TreeView每个Node都有三种状态,即选中,未选中和部分选中(指该Node的字节点并非全部选中)。
该控件支持三态的TreeView,并且支持当某个节点的Checkbox 状态发生改变时,自动回溯子节点和父节点。
使用该控件需要注意的是,必须使用AddTreeNode方法增加Node. 不能用Nodes.Add来增加。
该控件还提供了下面两个方法来获取和设置Node的Checkbox 状态:GetTreeNodeCheckBoxChecked,SetTreeNodeCheckBoxChecked
当Checkbox状态发生改变时,该控件提供一个 CheckBoxStateChanged 事件来截获状态的变化。
如果你觉得Checkbox 的图形不好看,你可以通过 CheckBoxStateImageList 属性来修改Checkbox 的图形 -err
该控件支持三态的TreeView,并且支持当某个节点的Checkbox 状态发生改变时,自动回溯子节点和父节点。
使用该控件需要注意的是,必须使用AddTreeNode方法增加Node. 不能用Nodes.Add来增加。
该控件还提供了下面两个方法来获取和设置Node的Checkbox 状态:GetTreeNodeCheckBoxChecked,SetTreeNodeCheckBoxChecked
当Checkbox状态发生改变时,该控件提供一个 CheckBoxStateChanged 事件来截获状态的变化。
如果你觉得Checkbox 的图形不好看,你可以通过 CheckBoxStateImageList 属性来修改Checkbox 的图形 -err
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Demo
....\Demo.csproj
....\Form1.cs
....\Form1.Designer.cs
....\Form1.resx
....\obj
....\...\Debug
....\...\.....\Demo.csproj.GenerateResource.Cache
....\...\.....\Demo.exe
....\...\.....\Demo.Form1.resources
....\...\.....\Demo.pdb
....\...\.....\Demo.Properties.Resources.resources
....\...\.....\ResolveAssemblyReference.cache
....\...\.....\TempPE
....\...\Demo.csproj.FileList.txt
....\...\Release
....\...\.......\Demo.csproj.GenerateResource.Cache
....\...\.......\Demo.exe
....\...\.......\Demo.Form1.resources
....\...\.......\Demo.pdb
....\...\.......\Demo.Properties.Resources.resources
....\...\.......\Refactor
....\...\.......\ResolveAssemblyReference.cache
....\...\.......\TempPE
....\Program.cs
....\Properties
....\..........\AssemblyInfo.cs
....\..........\Resources.Designer.cs
....\..........\Resources.resx
....\..........\Settings.Designer.cs
....\..........\Settings.settings
Readme.txt
TriStateTreeView.Ctrl
.....................\bin
.....................\...\Debug
.....................\...\.....\TriStateTreeView.dll
.....................\obj
.....................\...\Debug
.....................\...\.....\Refactor
.....................\...\.....\TempPE
.....................\...\.....\TriStateTreeView.csproj.GenerateResource.Cache
.....................\...\.....\TriStateTreeView.dll
.....................\...\.....\TriStateTreeView.pdb
.....................\...\.....\TriStateTreeView.TriStateTreeViewCtrl.resources
.....................\...\Release
.....................\...\.......\Refactor
.....................\...\.......\........\TriStateTreeView.dll
.....................\...\.......\TempPE
.....................\...\.......\TriStateTreeView.csproj.GenerateResource.Cache
.....................\...\.......\TriStateTreeView.dll
.....................\...\.......\TriStateTreeView.pdb
.....................\...\.......\TriStateTreeView.TriStateTreeViewCtrl.resources
.....................\...\TriStateTreeView.csproj.FileList.txt
.....................\Properties
.....................\..........\AssemblyInfo.cs
.....................\TriStateTreeView.cs
.....................\TriStateTreeView.csproj
.....................\TriStateTreeViewCtrl.cs
.....................\TriStateTreeViewCtrl.Designer.cs
.....................\TriStateTreeViewCtrl.resx
TriStateTreeView.sln
....\Demo.csproj
....\Form1.cs
....\Form1.Designer.cs
....\Form1.resx
....\obj
....\...\Debug
....\...\.....\Demo.csproj.GenerateResource.Cache
....\...\.....\Demo.exe
....\...\.....\Demo.Form1.resources
....\...\.....\Demo.pdb
....\...\.....\Demo.Properties.Resources.resources
....\...\.....\ResolveAssemblyReference.cache
....\...\.....\TempPE
....\...\Demo.csproj.FileList.txt
....\...\Release
....\...\.......\Demo.csproj.GenerateResource.Cache
....\...\.......\Demo.exe
....\...\.......\Demo.Form1.resources
....\...\.......\Demo.pdb
....\...\.......\Demo.Properties.Resources.resources
....\...\.......\Refactor
....\...\.......\ResolveAssemblyReference.cache
....\...\.......\TempPE
....\Program.cs
....\Properties
....\..........\AssemblyInfo.cs
....\..........\Resources.Designer.cs
....\..........\Resources.resx
....\..........\Settings.Designer.cs
....\..........\Settings.settings
Readme.txt
TriStateTreeView.Ctrl
.....................\bin
.....................\...\Debug
.....................\...\.....\TriStateTreeView.dll
.....................\obj
.....................\...\Debug
.....................\...\.....\Refactor
.....................\...\.....\TempPE
.....................\...\.....\TriStateTreeView.csproj.GenerateResource.Cache
.....................\...\.....\TriStateTreeView.dll
.....................\...\.....\TriStateTreeView.pdb
.....................\...\.....\TriStateTreeView.TriStateTreeViewCtrl.resources
.....................\...\Release
.....................\...\.......\Refactor
.....................\...\.......\........\TriStateTreeView.dll
.....................\...\.......\TempPE
.....................\...\.......\TriStateTreeView.csproj.GenerateResource.Cache
.....................\...\.......\TriStateTreeView.dll
.....................\...\.......\TriStateTreeView.pdb
.....................\...\.......\TriStateTreeView.TriStateTreeViewCtrl.resources
.....................\...\TriStateTreeView.csproj.FileList.txt
.....................\Properties
.....................\..........\AssemblyInfo.cs
.....................\TriStateTreeView.cs
.....................\TriStateTreeView.csproj
.....................\TriStateTreeViewCtrl.cs
.....................\TriStateTreeViewCtrl.Designer.cs
.....................\TriStateTreeViewCtrl.resx
TriStateTreeView.sln