using System; using Aga.Controls.Tree; namespace SampleApp { /// /// Inherits the node class to show how the class can be extended. /// public class MyNode : Node { /// Argument is null. public override string Text { get { return base.Text; } set { if (string.IsNullOrEmpty(value)) throw new ArgumentNullException(); base.Text = value; } } private bool _checked; /// /// Whether the box is checked or not. /// public bool Checked { get { return _checked; } set { _checked = value; } } /// /// Initializes a new MyNode class with a given Text property. /// /// String to set the text property with. public MyNode(string text) : base(text) { } } }