MobileForms Toolkit Documentation

Cell Class

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.AdvancedList.Cell
            Resco.Controls.AdvancedList.ButtonCell
            Resco.Controls.AdvancedList.IconCell
            Resco.Controls.AdvancedList.SeparatorCell
            Resco.Controls.AdvancedList.TextCell

public class Cell : Component

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Cell is the basic building block of RowTemplate. Cell has defined Bounds relative to its owner row 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 RowTemplate.

Cell is bound to a data from displayed row by the CellSource. The actual data can be determined by the indexer Item.

Notes to Inheritors:    During the further developement of the AdvancedList control non-public properties and methods can be a subject to change. For the example of derived cell see also Copy constructor and CurrentRow property.

Example

This sample shows the generated code to create empty cell with desired properties:

[Visual Basic]

Dim Cell1 As New Resco.Controls.Cell
Cell1.Border = Resco.Controls.BorderType.Inset
Cell1.BackColor = Color.Blue
Cell1.ForeColor = Color.Yellow
Cell1.Bounds = New System.Drawing.Rectangle(130, 2, 90, 19)
Cell1.CellSource.ColumnName = "Filter"
RowTemplate1.CellTemplates.Add(Cell1)
            
[C#]

Resco.Controls.Cell cell1 = new Resco.Controls.Cell();
cell1.Border = Resco.Controls.BorderType.Inset;
cell1.BackColor = Color.Blue;
cell1.ForeColor = Color.Yellow;
cell1.Bounds = new System.Drawing.Rectangle(130, 2, 90, 19);
cell1.CellSource.ColumnName = "Filter";
rowTemplate1.CellTemplates.Add(cell1);
           

Requirements

Namespace: Resco.Controls.AdvancedList

Assembly: Resco.AdvancedList.CF3 (in Resco.AdvancedList.CF3.dll)

See Also

Cell Members | Resco.Controls.AdvancedList Namespace | Copy constructor