The number of pixels between a cell's edge and it's contents.

Usage

Set_Property(OLECtrlEntID, "OLE.CellPadding[field; record]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>Left PaddingIntegerThe number of pixels between the cell's left edge and its contents2
<2>Top PaddingIntegerThe number of pixels between the cell's top edge and its contents1
<3>Right PaddingIntegerThe number of pixels between the cell's right edge and its contents3
<4>Bottom PaddingIntegerThe number of pixels between the cell's bottom edge and its contents1
<5>Image PaddingIntegerThe number of pixels between the cell's image and its text3

Indices

IndexDescription
fieldIndex to an existing field
recordIndex to an existing record

Remarks

The CellPadding property establishes the number of pixels between a cell's edge and its contents. This allows you to further align the contents to some other point than a cell's edge. You can also establish the distance between the cell's image and its text.

A cell's contents are clipped to according the padding, not the cell bounds.

See Also

CellAlignmentHeaderPaddingCellSelPadding

  • No labels