using System;
using Gwen.ControlInternal;
namespace Gwen.Control
{
///
/// Property table/tree.
///
public class PropertyTree : TreeControl
{
///
/// Initializes a new instance of the class.
///
/// Parent control.
public PropertyTree(Base parent)
: base(parent)
{
}
///
/// Adds a new properties node.
///
/// Node label.
/// Newly created control
public Properties Add(String label)
{
TreeNode node = new PropertyTreeNode(this);
node.Text = label;
node.Dock = Pos.Top;
Properties props = new Properties(node);
props.Dock = Pos.Top;
return props;
}
}
}