ComponentOne VSFlexGrid 8.0
Clearing Pictures

You can remove pictures from cells using three techniques:

  1. 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))));
    
  2. Use the Clear method to remove all cell formatting:

    Example Title
    Copy Code
      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:

    Example Title
    Copy Code
      VSFlexGrid1.setCell(21, new Variant(1), new Variant(1),
    
        new Variant(10), new Variant(10), new Variant(0));
    

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback