1 //***********************************************************************2 //Assembly : HZH_Controls3 //Created : 2019-09-114 //
5 //***********************************************************************6 //7 //Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com8 //9 //
10 //Blog:https://www.cnblogs.com/bfyx
11 //GitHub:https://github.com/kwwwvagaa/NetWinformControl
12 //gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
13 //
14 //If you use this code, please keep this note.15 //***********************************************************************
16 usingSystem;17 usingSystem.Collections.Generic;18 usingSystem.Linq;19 usingSystem.Text;20 usingSystem.Windows.Forms;21 usingSystem.Drawing;22 usingSystem.Drawing.Drawing2D;23 usingSystem.ComponentModel;24
25 namespaceHZH_Controls.Controls26 {27 ///
28 ///Class UCMindMapping.29 ///Implements the
30 ///
31 ///
32 internal classUCMindMapping : UserControl33 {34 ///
35 ///The line color36 ///
37 private Color lineColor =Color.Black;38
39 ///
40 ///Gets or sets the color of the line.41 ///
42 /// The color of the line.
43 [Description("线条颜色"), Category("自定义")]44 publicColor LineColor45 {46 get { returnlineColor; }47 set
48 {49 lineColor =value;50 Refresh();51 }52 }53 ///
54 ///The split width55 ///
56 private int splitWidth = 50;57 //private int itemHeight = 20;
58 ///
59 ///The padding60 ///
61 private int padding = 20;62
63 ///
64 ///The m rect working65 ///
66 Rectangle m_rectWorking =Rectangle.Empty;67 ///
68 ///Occurs when [item clicked].69 ///
70 public eventEventHandler ItemClicked;71 ///
72 ///The data source73 ///
74 privateMindMappingItemEntity dataSource;75 ///
76 ///Gets or sets the data source.77 /