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" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi sealed beforefieldinit TreeNodeAttribute extends System.Attribute" />
2003-11-05 04:30:47 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
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>
2011-11-09 16:01:51 +00:00
<Base >
<BaseTypeName > System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes >
<Attribute >
<AttributeName > System.AttributeUsage(System.AttributeTargets.Class)</AttributeName>
</Attribute>
</Attributes>
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>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public TreeNodeAttribute ();" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
2003-11-05 04:30:47 +00:00
<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" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public int ColumnCount { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance int32 ColumnCount" />
2003-11-05 04:30:47 +00:00
<MemberType > Property</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("This is no longer needed; it gets detected by Gtk#")</AttributeName>
</Attribute>
</Attributes>
2003-11-05 04:30:47 +00:00
<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>
</Member>
2005-01-03 18:37:08 +00:00
<Member MemberName= "ListOnly" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public bool ListOnly { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool ListOnly" />
2005-01-03 18:37:08 +00:00
<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>