Contents - Index - Previous - Next


OuterBorder property



Applies to
TProfGridCell class

Declaration
property OuterBorder: TProfGridCellOuterBorder;

Description

Specifies a cell-wise border that is drawn outside of the cell's client area.

The property in turn has the following properties:
  Color: TColor;
  ColorLeft: TColor;
  ColorTop: TColor;
  ColorRight: TColor;
  ColorBottom: TColor;
  ColorTopLeft: TColor;
  ColorTopRight: TColor;
  ColorBottomLeft: TColor;
  ColorBottomRight: TColor;
  Width: Byte;
  WidthLeft: Byte;
  WidthTop: Byte;
  WidthRight: Byte;
  WidthBottom: Byte;

Tip:  Use the Color and Width properties above to setup all four sides of the border at once. Use other properties to control border sides or corners separately.


Example

ProfGrid1.Cells[3,2].OuterBorder.Color := clRed;
ProfGrid1.Cells[3,2].OuterBorder.Width := 1;