CellPicture Property

Returns or sets the picture displayed in a selected cell or range.

Syntax

[form!]VSFlexGrid.CellPicture[ = Picture ]

Remarks

The Picture object assigned to this property may be retrieved from another control (for example, 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.

Data Type

Picture

See Also

VSFlexGrid Control