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

资源简介

    C#中利用GDI画树状图


资源截图

代码片段和文件信息

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

namespace WindowsFormsApplication10
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void pictureBox1_Paint(object sender PaintEventArgs e)
        {
            string parentTree = “中国“;
            ArrayList midTree = new ArrayList();
            midTree.Add(“江苏省“);
            midTree.Add(“山东省“);
            int midTreeCount = midTree.Count;
            ArrayList subTree = new ArrayList();
            subTree.Add(“南京市“);
            subTree.Add(“扬州市“);
       

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

     文件      10240  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\bin\Debug\WindowsFormsApplication10.exe

     文件      26112  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\bin\Debug\WindowsFormsApplication10.pdb

     文件      14328  2013-07-12 09:09  WindowsFormsApplication10\WindowsFormsApplication10\bin\Debug\WindowsFormsApplication10.vshost.exe

     文件        490  2007-07-21 01:33  WindowsFormsApplication10\WindowsFormsApplication10\bin\Debug\WindowsFormsApplication10.vshost.exe.manifest

     文件       5138  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\Form1.cs

     文件       2233  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\Form1.Designer.cs

     文件       5814  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\Form1.resx

     文件        938  2013-07-12 09:14  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\WindowsFormsApplication10.csproj.FileListAbsolute.txt

     文件        847  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\WindowsFormsApplication10.csproj.GenerateResource.Cache

     文件      10240  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\WindowsFormsApplication10.exe

     文件        180  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\WindowsFormsApplication10.Form1.resources

     文件      26112  2013-07-12 09:15  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\WindowsFormsApplication10.pdb

     文件        180  2013-07-12 09:12  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\WindowsFormsApplication10.Properties.Resources.resources

     文件        506  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10\Program.cs

     文件       1406  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10\Properties\AssemblyInfo.cs

     文件       2900  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10\Properties\Resources.Designer.cs

     文件       5612  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10\Properties\Resources.resx

     文件       1110  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10\Properties\Settings.Designer.cs

     文件        249  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10\Properties\Settings.settings

     文件       3761  2013-07-12 09:12  WindowsFormsApplication10\WindowsFormsApplication10\WindowsFormsApplication10.csproj

     文件        965  2013-07-11 22:09  WindowsFormsApplication10\WindowsFormsApplication10.sln

    ..A..H.     14336  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10.suo

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug\TempPE

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10\bin\Debug

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10\obj\Debug

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10\bin

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10\obj

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10\Properties

     目录          0  2013-07-12 09:17  WindowsFormsApplication10\WindowsFormsApplication10

     目录          0  2013-07-12 09:17  WindowsFormsApplication10

............此处省略3个文件信息

评论

共有 条评论