使用c#windows窗体剪切树视图中节点的复制粘贴 [英] cut copy paste of nodes in treeview using c# windows form

查看:99
本文介绍了使用c#windows窗体剪切树视图中节点的复制粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将我的xml文件填充到treeview中了我现在需要使用上下文菜单条剪切复制粘贴,,,,,树视图上的更改应该同时反映在xmlDocument上....

解决方案

我已经使用xml文件填充了我的树视图....现在我有一个上下文菜单条执行剪切复制粘贴....只需复制一个treenode并将其粘贴到另一个节点将只在树视图中进行更改,但我需要在我的xml文件中重新选择这些更改,这些更改将使用XMLDOCUMENT类型加载。

i只需要剪切复制粘贴的片段,其中也会更改为xml文件

i have been populated my xml file into treeview now i need to do cut copy paste using context menu strip,,,,, and that changes on treeview should be reflected on xmlDocument simultaneously....

解决方案

i have been populated my treeview with xml file.... now i have a context menu strip which performs cut copy paste.... just copying a treenode and pasting that into another node will just have changes in treeview but i need those changes to be refelected in my xml file which will be loaded using XMLDOCUMENT type.
i just need snippet for cut copy paste for which which also make changes into xml file


这篇关于使用c#windows窗体剪切树视图中节点的复制粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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