TextCell is a Cell used to display text.
For a list of all members of this type, see TextCell Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Resco.Controls.AdvancedList.Cell
Resco.Controls.AdvancedList.TextCell
Resco.Controls.AdvancedList.LinkCell
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 TextCell is a Cell capable of diplaying formated and aligned text. Text can have defined ForeColor and TextFont.
FormatString is used to display the data in formated manner. Setting the Alignment property you can control the placement of the text. If the text doesn't fit to Bounds it is cropped, and can be displayed using the tooltip.
This sample shows the generated code to create text cell displaying totals with currency information, see the format string used: [Visual Basic]
Dim TextCell1 As New Resco.Controls.TextCell
TextCell1.Alignment = Resco.Controls.Alignment.TopRight
TextCell1.Bounds = New System.Drawing.Rectangle(0, 16, -1, 16)
TextCell1.CellSource.ColumnName = "Total"
' We display the currency information with the constant text "Total: "
TextCell1.FormatString = "Total: {0:c}";
TextCell1.TextFont = New System.Drawing.Font(_
"Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold)
RowTemplate1.CellTemplates.Add(TextCell1)
[C#]
Resco.Controls.TextCell textCell1 = new Resco.Controls.TextCell();
textCell1.Alignment = Resco.Controls.Alignment.TopRight;
textCell1.Bounds = new System.Drawing.Rectangle(0, 16, -1, 16);
textCell1.CellSource.ColumnName = "Total";
// We display the currency information with the constant text "Total: "
textCell1.FormatString = "Total: {0:c}";
textCell1.TextFont = new System.Drawing.Font(
"Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
rowTemplate1.CellTemplates.Add(textCell1);
Namespace: Resco.Controls.AdvancedList
Assembly: Resco.AdvancedList.CF3 (in Resco.AdvancedList.CF3.dll)
TextCell Members | Resco.Controls.AdvancedList Namespace