Help Center

CellPictureAlignmentproperty

Returns or sets the alignment of pictures in a cell or range of selected cells.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY CellPictureAlignment () AS SHORT
PROPERTY CellPictureAlignment (BYVAL nAlignment AS SHORT)

Parameters

NameDescription
nAlignmentAn integer or constant that specifies how pictures should be aligned within cells.

Description

Returns or sets the alignment of pictures in a cell or range of selected cells.

Examples

grid.Row = 1 grid.Col = 1 grid.CellPicture = LoadPicture("C:\path\to\image.bmp") ' Center the picture in the cell grid.CellPictureAlignment = flexAlignCenterCenter

grid.FillStyle = flexFillRepeat grid.Row = 1 : grid.Col = 1 grid.RowSel = 5 : grid.ColSel = 5 grid.CellPictureAlignment = flexAlignCenterCenter grid.FillStyle = flexFillSingle

Reference