Copy constructor, gets values from other cell.
Use this constructor in derived cell types. You can use the graphical designer to design empty cell and than assign values quickly with this constructor.
The following sample demonstrates the usage in the derived cell (C# only): [C#]
class ButtonCell : Resco.Controls.Cell
{
public ButtonCell(Resco.Controls.Cell c) : base(c)
{
}
public override Resco.Controls.AdvancedTree.BorderType Border
{
get
{
if (Convert.ToBoolean(CurrentData))
return Resco.Controls.BorderType.Inset;
else
return Resco.Controls.BorderType.Raised;
}
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
// we have designed empty cell in the designer, it is the first
// cell in the first node template
// we will replace it with the custom ButtonCell
Resco.Controls.AdvancedTree.NodeTemplate t = advancedTree1.Templates[0];
t[0] = new ButtonCell(t[0]);
}
Cell Class | Resco.Controls.AdvancedTree Namespace | Cell Constructor Overload List