Clearing Pictures

You can remove pictures from cells using three techniques:

1.   Assign an empty picture to a cell or range:

  VSFlexGrid1.setCellPicture(new Bitmap(0,0));

  VSFlexGrid1.setCell(3, new Variant(3), new Variant(3),

    new Variant(4), new Variant(4),

    new Variant(com.ms.wfc.ui.AxHost.getIPictureDispFromPicture(new Bitmap(0,0))));

2.   Use the Clear method to remove all cell formatting:

  VSFlexGrid1.Clear(new Variant(1), new Variant(2)); // scrollable area/format

3.   Use the setCell property and set flexcpCustomFormat (21) to False. This removes all formatting from a range:

  VSFlexGrid1.setCell(21, new Variant(1), new Variant(1),

    new Variant(10), new Variant(10), new Variant(0));