c# - GTK sharp Convert treeView to xml?
问题描述
This is my code :
private TreeViewColumn _column;
private TreeStore _cells;
private string _filePath = "";
public MainWindow() : base(WindowType.Toplevel)
{
Build();
_column = new TreeViewColumn {Title = "List"};
ComponentstreeView.AppendColumn(_column);
_cells = new TreeStore(typeof(string), typeof(AComponent));
ComponentstreeView.Model = _cells;
_cells.AppendValues("Level", null);
CellRendererText entityCell = new CellRendererText();
_column.PackStart(entityCell, true);
_column.AddAttribute(entityCell, "text", 0);
}
There is a way to convert Treeview to xml or somthing else ? I search on google but I did not find anything.
解决方案
推荐阅读
- python - 我通过 pip 安装了 matplotlib,但是当我尝试将 matplotlib 导入 PyCharm 时出现错误
- docker - 为什么我在 Docker 中使用 optl-static 构建 Haskell 时收到这么多警告?
- sql - SELECT WHERE {column} = CASE WHEN {expression} THEN NULL
- android - 'com.google.maps.android:android-maps-utils:1.0.1' 打破集群,:1.0.0 没有
- r - 如何转置以下数据框?
- netbeans - 在 Netbeans 8.2 编辑器中查找下一个和上一个错误的键盘快捷键是什么?
- orocrm - 更新 OroCRM 帐户时插入数据
- javascript - 在 JavaScript 的帮助下为图像添加 alt 和 title 标签
- c++ - 为什么我在 Dev-C++ 中被拒绝?
- php - 在 php 中获取 2.2204460492503E-16 减法