Skip to main content

TdxVisualRefinements.LightBorders Property

Specifies if lightweight borders are displayed by all DevExpress controls that support them.

Declaration

class property LightBorders: Boolean read; write;

Property Value

Type Description
Boolean
  • If False (default), affected DevExpress controls display ordinary borders, including double borders where applicable.
  • If True, the controls display one-pixel lightweight borders. Refer to the table below for examples.”

Remarks

Options include:

LightBorders[1] Value Example
False Data Grid with Ordinary Borders
True Data Grid with Lightweight Borders

Code Example

Set the LightBorders property to True in the initialization section of the main application unit to display lightweight borders in the Data Grid control.

uses
  Forms,
  cxLookAndFeels,  // Adds the cxLookAndFeels unit to use the TdxVisualRefinements class
// ...
begin
  TdxVisualRefinements.LightBorders := True;
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TMyForm, MyForm);
  Application.Run;
end.

Note

Lightweight borders are a part of Light Style.

Default Value

The LightBorders property’s default value is False.

Footnotes
  1. The LightBorders property affects only the Data Grid control.

See Also