c# 思维导图库_(六十五)c#Winform自定义控件-思维导图/组织架构图(工业)-HZHControls...

本文档介绍了HZHControls库中UCMindMapping类的实现,这是一个用于创建和显示思维导图的自定义Windows窗体控件。控件支持线条颜色设置、节点点击事件以及数据源绑定,可以进行节点的展开和折叠操作。
摘要由CSDN通过智能技术生成

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 /

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值