Gtk.TreeNodeAttribute Class
An attribute to specify tree node information of a class.

See Also: TreeNodeAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class TreeNodeAttribute : Attribute

Remarks

This attribute can be applied to a class which implements the Gtk.ITreeNode interface to provide additional information about the node type to the Gtk.NodeStore which will contain the nodes.

In the following example, the class MyTreeNode is tagged as a tree node with 3 columns:

C# Example

	[TreeNode(ColumnCount=3)]
	public class MyTreeNode : ITreeNode {

	...

	}
          

In the following example, the class MyListNode is tagged as a node with 2 columns and no child nodes:

C# Example

	[TreeNode(ColumnCount=2, ListOnly=true)]
	public class MyListNode : ITreeNode {

	...

	}
          

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Assembly Versions: 2.12.0.0