gtk-sharp2.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.An attribute to specify tree node information of a class.
This attribute can be applied to a class which implements the
interface to provide additional information
about the node type to the which will contain
the nodes.
In the following example, the class MyTreeNode is tagged as
a tree node with 3 columns:
[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:
[TreeNode(ColumnCount=2, ListOnly=true)]
public class MyListNode : ITreeNode {
...
}
System.AttributeSystem.AttributeUsage(AllowMultiple=False, Inherited=True, ValidOn=System.AttributeTargets.Class)ConstructorTreeNodeAttribute constructorInstantiates a PropertySystem.Int32ColumnCount named value.a
Specifies the number of columns the node exposes. A
should be added to each of the properties of the class which represent
the individual column values.
PropertySystem.BooleanListOnly named value.a
Specifies if the node can have children. For list views, this tells the
NodeStore that it is non-hierarchical and it can expose flags so that the
NodeView doesn't include space for expanders in the column layout.