• 大小: 0.02M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: Xml  解析  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TreeListViewDemo
{
    public partial class Form1 : Form
    {
        private void AddTreeViewNodes()
        {
            // 添加根节点
            TreeNode tn = new TreeNode();
            tn.Text = “金庸小说“;
            tn.ImageIndex = 0;
            tn.SelectedImageIndex = 0;
            tv.Nodes.Add((TreeNode)(tn.Clone()));
            // 添加4个子节点
            tn.Text = “射雕英雄传“;
            tn.ImageIndex = 1;
            tn.SelectedImageIndex = 2;
            tv.Nodes[0].Nodes.Add((TreeNode)(tn.Clone()));
            tn.Text = “神雕侠侣“;
            tn.ImageIndex = 1;
            tn.SelectedImag

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5612  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Properties\Resources.resx

     文件        249  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Properties\Settings.settings

     文件       1188  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Properties\AssemblyInfo.cs

     文件       2886  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Properties\Resources.Designer.cs

     文件       1099  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Properties\Settings.Designer.cs

     目录          0  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Properties

     文件       3239  2006-02-07 15:16  TreeListViewDemo\TreeListViewDemo\TreeListViewDemo.csproj

     目录          0  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\bin\Debug

     目录          0  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\bin

     目录          0  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\obj\Debug

     文件        331  2006-06-20 11:19  TreeListViewDemo\TreeListViewDemo\obj\TreeListViewDemo.csproj.FileList.txt

     目录          0  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\obj

     文件        475  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo\Program.cs

     文件      18881  2006-06-20 11:19  TreeListViewDemo\TreeListViewDemo\Form1.resx

     文件      16363  2006-06-20 11:19  TreeListViewDemo\TreeListViewDemo\Form1.Designer.cs

     文件       7765  2006-06-20 11:19  TreeListViewDemo\TreeListViewDemo\Form1.cs

     目录          0  2006-02-07 15:13  TreeListViewDemo\TreeListViewDemo

     文件        937  2006-02-07 15:14  TreeListViewDemo\TreeListViewDemo.sln

    ..A..H.     15872  2006-06-20 11:19  TreeListViewDemo\TreeListViewDemo.suo

     目录          0  2006-02-07 15:13  TreeListViewDemo

----------- ---------  ---------- -----  ----

                75115                    21


评论

共有 条评论