diff --git a/doc/ChangeLog b/doc/ChangeLog index b4bf3e0d9..d462e4845 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-05 Mike Kestner + + * en/Gtk/TreeNode.xml : documented + * en/Gtk/TreeView.xml : documented NodeStore ctor. + 2003-11-05 Mike Kestner * en/Gtk/ITreeNode.xml : documented diff --git a/doc/en/Gtk/TreeNode.xml b/doc/en/Gtk/TreeNode.xml index 767581892..f74c0fecf 100644 --- a/doc/en/Gtk/TreeNode.xml +++ b/doc/en/Gtk/TreeNode.xml @@ -1,5 +1,5 @@ - + gtk-sharp @@ -7,10 +7,49 @@ neutral - + Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added - To be added + TreeNode abstract class + + + Convenience class for deriving ITreeNode implementing objects for + implementations. This class can be subclassed + to quickly implement a node type without having to implement the tree building + and navigational aspects of the interface. + + + The following example shows a simple subclass: + + + +[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 (); + } + } +} + + + + The base class provides all the + details and MyTreeNode uses to notify of tree related + node changes. + + System.Object @@ -36,10 +75,13 @@ - To be added + IndexOf method a a - To be added + + Returns the child index of + or -1 if is not a child of this . + @@ -50,8 +92,8 @@ - To be added - To be added + OnChanged method + Raises the Changed event. Call this method if any column values of the node change. @@ -64,9 +106,14 @@ - To be added + AddChild method a - To be added + + Adds the specified to this . + The is added to the end of the children list, the + property of is set to + this node, and the event is raised. + @@ -79,9 +126,13 @@ - To be added + RemoveChild method a - To be added + + Removes the specified from this . + The property of is set to + and the event is raised. + @@ -90,9 +141,9 @@ - To be added + TreeNode constructor a - To be added + Default constructor.. @@ -103,9 +154,9 @@ - To be added + ID property a - To be added + Read-only. Provides a unique identifier for all instances. @@ -116,9 +167,9 @@ - To be added + Parent property a - To be added + Read-only. The parent for this node. @@ -129,9 +180,9 @@ - To be added + ChildCount a - To be added + Read-only. The number of children of this node. @@ -144,10 +195,13 @@ - To be added + Child indexer a a - To be added + + Returns the child at position in the list of children + for this . + @@ -158,8 +212,11 @@ - To be added - To be added + Changed event + + Raised when the contents of the change. + Use for a convenient way to raise the event. + @@ -170,8 +227,8 @@ - To be added - To be added + ChildAdded event + Raised when a child is added to the node. @@ -182,9 +239,9 @@ - To be added - To be added + ChildRemoved event + Raised when a child is removed from the node. - \ No newline at end of file + diff --git a/doc/en/Gtk/TreeView.xml b/doc/en/Gtk/TreeView.xml index b1c734500..f6bfac705 100644 --- a/doc/en/Gtk/TreeView.xml +++ b/doc/en/Gtk/TreeView.xml @@ -1432,11 +1432,13 @@ public class TreeViewDemo { - To be added + TreeView constructor a a - To be added + Creates a with as + its . + - \ No newline at end of file +