Tree. We add a TreeView control to the Windows Forms Application project. It represents hierarchical text and icon data in a convenient way. Gtk.TreeIter iter = Tree.AppendValues("Parent1") TreeView must have nodes added to it through the Nodes collection. Gtk.TreeStore Tree = new Gtk.TreeStore(typeof(string), typeof(string), typeof(string)) Gtk.CellRendererText Child2 = new Gtk.CellRendererText() ĬhildColoumn1.AddAttribute(Child1, "text", 1) ĬhildColumn2.AddAttribute(Child2, "text", 2) Gtk.TreeViewColumn ChildColumn2 = new Gtk.TreeViewColumn() Gtk.CellRendererText Child1 = new Gtk.CellRendererText() Gtk.TreeViewColumn ChildColoumn1 = new Gtk.TreeViewColumn() Each node in the tree view might contain other nodes, called child nodes. Gtk.CellRendererText Parent1 = new Gtk.CellRendererText() With the Windows Forms TreeView control, you can display a hierarchy of nodes to users, like the way files and folders are displayed in the left pane of the Windows Explorer feature of the Windows operating system. Gtk.TreeViewColumn Parent = new Gtk.TreeViewColumn() Gtk.Window window = new Gtk.Window("TreeView Example") U will get the TreeView public class TreeViewExample Download Gtksharp for ur operating system and add refrence of these dll in visual studio atk-sharp.dll, gdk-sharp.dll, glib-sharp.dll, gtk-sharp.dll and use using Gtk. TreeListView = new BrightIdeasSoftware.TreeListView() Use the ObjectListView library, is very powerful and pretty easy to use.ġ) compile the ObjectListView source code to get a ObjectListView.dllĢ) create a new Windows Forms Application and add the ObjectListView.dll as referenceģ) Open the Form1.cs code and copy the following code inside: public partial class Form1 : Form
0 Comments
Leave a Reply. |