Cell is the basic cell from which other cell types are derived.
For a list of all members of this type, see Cell Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Resco.Controls.AdvancedTree.Cell
Resco.Controls.AdvancedTree.ButtonCell
Resco.Controls.AdvancedTree.ImageCell
Resco.Controls.AdvancedTree.SeparatorCell
Resco.Controls.AdvancedTree.TextCell
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The Cell is the basic building block of NodeTemplate. Cell has defined Bounds relative to its owner node template. Around the cell can be drawn Border, which is actually one pixel outside of the cell bounds. The Cell has defined BackColor for drawing the background and ForeColor for drawing the contents. Their default value is Transparent, i.e. the actual color is determined by the BackColor or ForeColor of the owner NodeTemplate.
Cell is bound to a data from displayed node by the CellSource. The actual data can be determined by the indexer Item.
Notes to Inheritors: During the further developement of the AdvancedTree control non-public properties and methods can be a subject to change. For the example of derived cell see alsoCopy constructor and CurrentNode property.
This sample shows the generated code to create empty cell with desired properties: [Visual Basic]
Dim Cell1 As New Resco.Controls.AdvancedTree.Cell
Cell1.Border = Resco.Controls.AdvancedTree.BorderType.Inset
Cell1.BackColor = Color.Blue
Cell1.ForeColor = Color.Yellow
Cell1.Bounds = New System.Drawing.Rectangle(130, 2, 90, 19)
Cell1.CellSource.ColumnName = "Filter"
NodeTemplate1.CellTemplates.Add(Cell1)
[C#]
Resco.Controls.AdvancedTree.Cell cell1 = new Resco.Controls.AdvancedTree.Cell();
cell1.Border = Resco.Controls.AdvancedTree.BorderType.Inset;
cell1.BackColor = Color.Blue;
cell1.ForeColor = Color.Yellow;
cell1.Bounds = new System.Drawing.Rectangle(130, 2, 90, 19);
cell1.CellSource.ColumnName = "Filter";
nodeTemplate1.CellTemplates.Add(cell1);
Namespace: Resco.Controls.AdvancedTree
Assembly: Resco.AdvancedTree.CF3 (in Resco.AdvancedTree.CF3.dll)
Cell Members | Resco.Controls.AdvancedTree Namespace | Copy constructor