Sign in Join
FPDoc Onlineexperiment

TGridColumn.IsDefault function

Member of TGridColumnpublicIn unit Grids

Indicates if default layout settings are used for the grid column.

Declaration

pascal
function IsDefault: Boolean; virtual

Function result

True if the column uses its default settings.

Description

IsDefault is a Boolean function used to determine if the grid column uses default values in properties used to layout and configure the class instance. The return value is True when all of the following conditions are met:

  • Alignment is unassigned (Nil).
  • Color is unassigned (Nil).
  • ReadOnly is unassigned (Nil).
  • Width is unassigned (Nil).
  • Layout is unassigned (Nil).
  • MaxSize is unassigned (Nil).
  • MinSize is unassigned (Nil).
  • SizePriority is unassigned (Nil).
  • IsDefaultFont returns True.
  • Title uses default settings.

IsDefault is used during LCL component streaming to determine whether items in the Columns collection need to be included in the resource stream when the private WriteColumns method is called.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.