setPictureDescription

setPictureDescription(desc: String) updating;

The setPictureDescription property of the JadeTableCell class assigns a description to a picture in a cell. This description is used when accessibility screen-reading software (for example, Scientific Freedom Jaws) reads the contents of a cell that has no cell text.

The assignment associates the description with the picture, not with the cell, so if the same picture is assigned to more than one cell, the last description set for the image applies to all cells.

If the method is called for a cell that does not have an assigned image, an exception is raised. Ensure that the picture is assigned to the cell before the description is attached, as in the following example.

vars
    jtc : JadeTableCell;
begin
    jtc := table1.accessCell(2,1);
    jtc.picture := app.loadPicture("C:\bridge.jpg");
    jtc.setPictureDescription("London Bridge");
end;