2003-11-05 04:30:47 +00:00
<Type Name= "TreeNode" FullName= "Gtk.TreeNode" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Mike Kestner" Value= "public abstract class TreeNode : Gtk.ITreeNode" />
2003-11-05 04:30:47 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-04 21:09: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-06 01:28:34 +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-06 01:28:34 +00:00
<summary > TreeNode abstract class</summary>
<remarks >
<para >
Convenience class for deriving ITreeNode implementing objects for
2003-12-04 21:09:30 +00:00
<see cref= "T:Gtk.NodeStore" /> implementations. This class can be subclassed
2003-11-06 01:28:34 +00:00
to quickly implement a node type without having to implement the tree building
2003-12-04 21:09:30 +00:00
and navigational aspects of the <see cref= "T:Gtk.ITreeNode" /> interface.
2003-11-06 01:28:34 +00:00
</para>
<para >
2003-12-04 21:09:30 +00:00
The following example shows a simple <see cref= "T:Gtk.TreeNode" /> subclass:
2003-11-06 01:28:34 +00:00
</para>
<example >
<code lang= "C#" >
[TreeNode(ColumnCount=1)]
public class MyTreeNode : TreeNode {
string level;
public MyTreeNode (string level)
{
this.level = level;
}
[TreeNodeValue(Column=0)]
public string Level {
get {
return level;
}
set {
level = value;
OnChanged ();
}
}
}
</code>
</example>
<para >
2003-12-04 21:09:30 +00:00
The <see cref= "T:Gtk.TreeNode" /> base class provides all the <see cref= "T:Gtk.ITreeNode" />
details and MyTreeNode uses <see cref= "T:Gtk.TreeNode.OnChanged" /> to notify of tree related
2003-11-06 01:28:34 +00:00
node changes.
</para>
</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
<Base >
<BaseTypeName > System.Object</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > Gtk.ITreeNode</InterfaceName>
</Interface>
</Interfaces>
<Attributes >
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > System.Reflection.DefaultMember("Item")</AttributeName>
2003-11-05 04:30:47 +00:00
</Attribute>
</Attributes>
<Members >
<Member MemberName= "IndexOf" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public int IndexOf (object o);" />
2003-11-05 04:30:47 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "o" Type= "System.Object" />
</Parameters>
<Docs >
2003-11-06 01:28:34 +00:00
<summary > IndexOf method</summary>
2003-11-05 04:30:47 +00:00
<param name= "o" > a <see cref= "T:System.Object" /> </param>
<returns > a <see cref= "T:System.Int32" /> </returns>
2003-11-06 01:28:34 +00:00
<remarks >
2003-12-04 21:09:30 +00:00
Returns the child index of <paramref name= "o" />
or -1 if <paramref name= "o" /> is not a child of this <see cref= "T:Gtk.TreeNode" /> .
2003-11-06 01:28:34 +00:00
</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "OnChanged" >
<MemberSignature Language= "C#" Value= "protected void OnChanged ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > OnChanged method</summary>
<remarks > Raises the Changed event. Call this method if any column values of the node change.</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public TreeNode ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > TreeNode constructor</summary>
<remarks > Default constructor..</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "ID" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public int ID { get; };" />
2003-11-05 04:30:47 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > ID property</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Int32" /> </value>
2003-11-06 01:28:34 +00:00
<remarks > Read-only. Provides a unique identifier for all <see cref= "T:Gtk.TreeNode" /> instances.</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "ChildCount" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public int ChildCount { get; };" />
2003-11-05 04:30:47 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > ChildCount</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Int32" /> </value>
2003-11-06 01:28:34 +00:00
<remarks > Read-only. The number of <see cref= "T:Gtk.ITreeNode" /> children of this node.</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "Item" >
2007-01-16 16:18:05 +00:00
<MemberSignature Language= "C#" Value= "public Gtk.ITreeNode this[int index] { get; };" />
2003-11-05 04:30:47 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.ITreeNode</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "index" Type= "System.Int32" />
</Parameters>
<Docs >
2003-11-06 01:28:34 +00:00
<summary > Child indexer</summary>
2003-11-05 04:30:47 +00:00
<param name= "index" > a <see cref= "T:System.Int32" /> </param>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Gtk.ITreeNode" /> </value>
2003-11-06 01:28:34 +00:00
<remarks >
Returns the child at position <paramref name= "index" /> in the list of children
for this <see cref= "T:Gtk.ITreeNode" /> .
</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "Changed" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public event EventHandler Changed;" />
2003-11-05 04:30:47 +00:00
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > Changed event</summary>
<remarks >
Raised when the contents of the <see cref= "T:Gtk.ITreeNode" /> change.
2003-12-04 21:09:30 +00:00
Use <see cref= "M:Gtk.ITreeNode.OnChange" /> for a convenient way to raise the event.
2003-11-06 01:28:34 +00:00
</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "ChildAdded" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.TreeNodeAddedHandler ChildAdded;" />
2003-11-05 04:30:47 +00:00
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > Gtk.TreeNodeAddedHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > ChildAdded event</summary>
<remarks > Raised when a child <see cref= "T:Gtk.ITreeNode" /> is added to the node.</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "ChildRemoved" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.TreeNodeRemovedHandler ChildRemoved;" />
2003-11-05 04:30:47 +00:00
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > Gtk.TreeNodeRemovedHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-06 01:28:34 +00:00
<summary > ChildRemoved event</summary>
<remarks > Raised when a child <see cref= "T:Gtk.ITreeNode" /> is removed from the node.</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
2003-12-04 21:09:30 +00:00
<Member MemberName= "Parent" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public Gtk.ITreeNode Parent { get; };" />
2003-12-04 21:09:30 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.ITreeNode</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Parent property</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Gtk.ITreeNode" /> </value>
2003-12-04 21:09:30 +00:00
<remarks > Read-only. The parent <see cref= "T:Gtk.ITreeNode" /> for this node.</remarks>
</Docs>
</Member>
<Member MemberName= "AddChild" >
<MemberSignature Language= "C#" Value= "public void AddChild (Gtk.TreeNode child);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "child" Type= "Gtk.TreeNode" />
</Parameters>
<Docs >
2005-03-15 17:34:36 +00:00
<summary > Appends a child to the node</summary>
2003-12-04 21:09:30 +00:00
<param name= "child" > a <see cref= "T:Gtk.TreeNode" /> </param>
2003-12-24 01:35:30 +00:00
<remarks > Adds the specified <paramref name= "child" /> to this <see cref= "T:Gtk.ITreeNode" /> .
The <paramref name= "child" /> is added to the end of the children list, the
<see cref= "P:Gtk.TreeNode.Parent" /> property of <paramref name= "child" /> is set to
this node, and the <see cref= "E:Gtk.TreeNode.ChildAdded" /> event is raised.</remarks>
2003-12-04 21:09:30 +00:00
</Docs>
</Member>
2005-03-15 17:34:36 +00:00
<Member MemberName= "AddChild" >
<MemberSignature Language= "C#" Value= "public void AddChild (Gtk.TreeNode child, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "child" Type= "Gtk.TreeNode" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
<Docs >
<summary > Inserts a child at the given position</summary>
<param name= "child" > a <see cref= "T:Gtk.TreeNode" /> </param>
<param name= "position" > Position among the node's children to insert <paramref name= "child" /> </param>
<remarks > Adds the specified <paramref name= "child" /> to this <see cref= "T:Gtk.ITreeNode" /> .
The <paramref name= "child" /> is added to the children list before the child currently
at position <paramref name= "position" /> , the <see cref= "P:Gtk.TreeNode.Parent" />
property of <paramref name= "child" /> is set to this node, and the
<see cref= "E:Gtk.TreeNode.ChildAdded" /> event is raised.</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2005-03-15 17:34:36 +00:00
</Docs>
</Member>
2003-12-04 21:09:30 +00:00
<Member MemberName= "RemoveChild" >
<MemberSignature Language= "C#" Value= "public void RemoveChild (Gtk.TreeNode child);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "child" Type= "Gtk.TreeNode" />
</Parameters>
<Docs >
<summary > RemoveChild method</summary>
<param name= "child" > a <see cref= "T:Gtk.TreeNode" /> </param>
2003-12-24 01:35:30 +00:00
<remarks > Removes the specified <paramref name= "child" /> from this <see cref= "T:Gtk.ITreeNode" /> .
The <see cref= "P:Gtk.TreeNode.Parent" /> property of <paramref name= "child" /> is set to
<see langword= "null" /> and the <see cref= "E:Gtk.TreeNode.ChildRemoved" /> event is raised.</remarks>
2003-12-04 21:09:30 +00:00
</Docs>
</Member>
2003-11-05 04:30:47 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>