VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > CellPicture Property |
Returns or sets the picture displayed in a selected cell or range.
[form!]VSFlexGrid.CellPicture[ = Picture ]
The Picture object assigned to this property may be retrieved from another control (e.g. the Image control's Picture property) or loaded from a disk file using Visual Basic's LoadPicture function. Using pictures in Visual C++ is a little more involved. For details on this, see the Using VSFlexGrid in Visual C++ topic.
Each cell may contain text and a picture. The relative position of the text and picture is determined by the CellAlignment property and CellPictureAlignment property. If you want the text to be drawn over the picture, set the PicturesOver property to True.
Changing this property affects the current cell or the current selection depending on the setting of the FillStyle property. To assign pictures to an arbitrary range of cells (not necessarily the current selection), use the Cell property instead.
Picture