将treenode转换到c#.net中的控件 [英] covrting treenode to a control in c#.net

查看:140
本文介绍了将treenode转换到c#.net中的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否有任何方法可以将treenode转换为控件...

我在Windows窗体应用程序中有一个tereeview,我需要将treenode转换为c#.net中的Control类.任何建议..



Is there any methods to conver the treenode in to a control ...

i have a tereeview in windows form application i need to convert the treenode to a Control class in c#.net any suggestions ..

推荐答案

您应该阅读 [

不. TreeNode不是控件. Tree View 是一个控件,您可以从具有其TreeView属性的节点中获取它(例如,如果要使用图形上下文文本度量或其他方法).

为了获得更多帮助,您需要清楚自己的实际意图.
No. A TreeNode is not a control. The TreeView is a control, and you can get that from a node with its TreeView property (for example if you want to use graphics context text measurement or something).

To be more helpful, you need to be clear about what you are actually trying to do.


这篇关于将treenode转换到c#.net中的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆