2003-11-05 04:30:47 +00:00
<Type Name= "TreeNodeAttribute" FullName= "Gtk.TreeNodeAttribute" >
2007-01-16 16:18:05 +00:00
<TypeSignature Language= "C#" Maintainer= "Mike Kestner" Value= "public sealed class TreeNodeAttribute : Attribute" />
2003-11-05 04:30:47 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2007-12-06 18:37:54 +00:00
<AssemblyVersion > 2.12.0.0</AssemblyVersion>
2003-11-05 04:30:47 +00:00
</AssemblyInfo>
2003-11-05 21:28:19 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-11-05 04:30:47 +00:00
<Docs >
2003-11-05 21:28:19 +00:00
<summary > An attribute to specify tree node information of a class.</summary>
<remarks >
<para >
This attribute can be applied to a class which implements the
<see cref= "T:Gtk.ITreeNode" /> interface to provide additional information
2003-12-24 01:35:30 +00:00
about the node type to the <see cref= "T:Gtk.NodeStore" /> which will contain
2003-11-05 21:28:19 +00:00
the nodes.
</para>
<para >
In the following example, the class MyTreeNode is tagged as
a tree node with 3 columns:
2007-01-16 16:18:05 +00:00
<example > <code lang= "C#" >
2003-11-05 21:28:19 +00:00
[TreeNode(ColumnCount=3)]
public class MyTreeNode : ITreeNode {
...
}
2007-01-16 16:18:05 +00:00
</code> </example> </para>
2005-01-03 18:37:08 +00:00
<para >
In the following example, the class MyListNode is tagged as
a node with 2 columns and no child nodes:
2007-01-16 16:18:05 +00:00
<example > <code lang= "C#" >
2005-01-03 18:37:08 +00:00
[TreeNode(ColumnCount=2, ListOnly=true)]
public class MyListNode : ITreeNode {
...
}
2007-01-16 16:18:05 +00:00
</code> </example> </para>
2003-11-05 21:28:19 +00:00
</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
<Base >
<BaseTypeName > System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes >
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > System.AttributeUsage(System.AttributeTargets.Class)</AttributeName>
2003-11-05 04:30:47 +00:00
</Attribute>
</Attributes>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public TreeNodeAttribute ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-11-05 21:28:19 +00:00
<summary > TreeNodeAttribute constructor</summary>
2003-12-24 01:35:30 +00:00
<remarks > Instantiates a <see cref= "T:Gtk.TreeNodeAttribute" /> </remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "ColumnCount" >
<MemberSignature Language= "C#" Value= "public int ColumnCount { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-05 21:28:19 +00:00
<summary > ColumnCount named value.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Int32" /> </value>
2003-11-05 21:28:19 +00:00
<remarks >
Specifies the number of columns the node exposes. A
2003-12-24 01:35:30 +00:00
<see cref= "T:Gtk.TreeNodeValueAttribute" />
2003-11-05 21:28:19 +00:00
should be added to each of the properties of the class which represent
the individual column values.
</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
2005-09-07 17:56:34 +00:00
<Attributes >
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > System.Obsolete("This is no longer needed; it gets detected by Gtk#")</AttributeName>
2005-09-07 17:56:34 +00:00
</Attribute>
</Attributes>
2003-11-05 04:30:47 +00:00
</Member>
2005-01-03 18:37:08 +00:00
<Member MemberName= "ListOnly" >
<MemberSignature Language= "C#" Value= "public bool ListOnly { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > ListOnly named value.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Boolean" /> </value>
2005-01-03 18:37:08 +00:00
<remarks >
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.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2005-01-03 18:37:08 +00:00
</Docs>
</Member>
2003-11-05 04:30:47 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>