VSFlexGrid Introduction > Using VSFlexGrid in Visual J++ > Clearing Pictures |
You can remove pictures from cells using three techniques:
Assign an empty picture to a cell or range:
Example Title |
Copy Code
|
---|---|
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)))); |
Use the Clear method to remove all cell formatting:
Example Title |
Copy Code
|
---|---|
VSFlexGrid1.Clear(new Variant(1), new Variant(2)); // scrollable area/format |
Use the setCell property and set flexcpCustomFormat (21) to False. This removes all formatting from a range:
Example Title |
Copy Code
|
---|---|
VSFlexGrid1.setCell(21, new Variant(1), new Variant(1), new Variant(10), new Variant(10), new Variant(0)); |