CellAppearance
Properties:
AutoCellHeight
BackColor
CellHeight
Check
CheckValue
Font
Hyperlink
MarkIncomplete
Name
Picture
PictureIndex
PictureValue
ReadOnly
ShowCheckBox
ShowPicture
ShowText
Text
TextColor
Value
Visible
Methods:
SetPicture
SetText
Description:
Availability:
Example:
// Example 1. Setting color for cells For each CellAppearance In RowAppearance.Cells Do CellAppearance.BackColor = New Color(5, 12, 120); EndDo; // Example 2. Output a picture into table box cell // for the column (Importance) the picture library is set during designing. // This library consits of two pictures, which are chosen by value // of displayed data (RowData) RowAppearance.Cells.Importance.ShowText = False; RowAppearance.Cells.Importance.ShowCheckBox = False; RowAppearance.Cells.Importance.ShowPicture = True; If RowData.Importance = Enums.Importance.High Then RowAppearance.Cells.Importance.PictureIndex = 0; ElseIf RowData.Importance = Enums.Importance.Low Then RowAppearance.Cells.Importance.PictureIndex = 1; Else //do not display (display empty) picture RowAppearance.Cells.Importance.Picture = New Picture; EndIf; // Example 3. Filling a table box column on display of the value table Procedure BeforeOpen(Cancel, StandardProcessing) Var Str; VT.Columns.Add("Picture"); // Filiing the value table For Count = 0 to 10 Do Str = VT.Add(); If Count % 2 = 0 Then Str.Picture = PictureLib.Help; Else Str.Picture = PictureLib.Important; EndIf; EndDo; Controls.TableBox1.Columns.Column1.PictureData = "Picture"; EndProcedure |
See also:
CellAppearance, property Picture