39 lines
956 B
C#
39 lines
956 B
C#
|
using System;
|
|||
|
using Gwen.ControlInternal;
|
|||
|
|
|||
|
namespace Gwen.Control
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Property table/tree.
|
|||
|
/// </summary>
|
|||
|
public class PropertyTree : TreeControl
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Initializes a new instance of the <see cref="PropertyTree"/> class.
|
|||
|
/// </summary>
|
|||
|
/// <param name="parent">Parent control.</param>
|
|||
|
public PropertyTree(Base parent)
|
|||
|
: base(parent)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Adds a new properties node.
|
|||
|
/// </summary>
|
|||
|
/// <param name="label">Node label.</param>
|
|||
|
/// <returns>Newly created control</returns>
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|