[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TGridColumnTitle

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Provides properties and methods need to represent a column title in a grid.

Declaration

Source position: grids.pas line 447

type TGridColumnTitle = class(TPersistent)

protected

  function GetDefaultCaption; virtual;

  

Returns the default caption for the column title.

  function GetDefaultAlignment;

  

Returns the default alignment for the column title.

  function GetDefaultColor;

  

Returns the default color for the column title.

  function GetDefaultLayout;

  

Returns the default layout for the column title.

  function GetOwner; override;

  

Gets the persistent object which owns the class instance.

  function GetCaption;

  

Gets the value for the Caption property.

  procedure SetCaption(); virtual;

  

Specifies the caption used for the column title.

  procedure DefineProperties(); override;

  

Specifies which properties in the persistent object are used during LCL component streaming.

public

  constructor Create(); virtual;

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  procedure Assign(); override;

  

Copies property value from the specified persistent object into the current class instance.

  procedure FillTitleDefaultFont;

  

Stores the default font used for the column title.

  procedure FixDesignFontsPPI(); virtual;

  

Corrects the design-time PPI for the column title.

  procedure ScaleFontsPPI(); virtual;

  

Scales font sizes in the class instance to the specified display density.

  function IsDefault;

  

Returns True if the column title uses the default property values.

  property Column: TGridColumn; [r]

  

The TGridColumn instance where the title is used.

published

  property Alignment: TAlignment; [rws]

  

Horizontal alignment for the text in the column title.

  property Caption: TCaption; [rws]

  

Text displayed as the title for the grid column.

  property Color: TColor; [rws]

  

The background color for the column title.

  property Font: TFont; [rws]

  

Contains the typeface and text attributes for the Caption displayed in the column title.

  property ImageIndex: TImageIndex; [rw]

  

Ordinal position for the image displayed in the fixed header for the column title.

  property ImageLayout: TButtonLayout; [rw]

  

The layout used for any image in the column title.

  property Layout: TTextLayout; [rws]

  

Vertical alignment for the Caption text displayed in the column title.

  property MultiLine: Boolean; [rw]

  

Indicates whether the column title can be displayed as multiple lines.

  property PrefixOption: TPrefixOption; [rw]

  

Indicates if accelerator keys are used in the column title.

end;

Inheritance

TGridColumnTitle

  

Provides properties and methods need to represent a column title in a grid.

|

TPersistent,IFPObserved

|

TObject

Description

TGridColumnTitle is TPersistent descendant used to represent properties and methods for the title for a column in a grid. Use the published properties in the class to access the layout and display attributes for the column title, including:

Use the Caption to read or write the text displayed as the title for a grid column.

Use the Column to read the column reference (assigned in the constructor for the class instance) to which the column title is attached.

TGridColumnTitle is the type used to implement the TGridColumn.Title property.

See also

TGridColumn.Title

  

Contains the attributes for the title in the fixed header for the column.

TGridColumnTitle.Caption

  

Text displayed as the title for the grid column.

TGridColumnTitle.Column

  

The TGridColumn instance where the title is used.

TGridColumnTitle.Alignment

  

Horizontal alignment for the text in the column title.

TGridColumnTitle.Color

  

The background color for the column title.

TGridColumnTitle.Font

  

Contains the typeface and text attributes for the Caption displayed in the column title.

TGridColumnTitle.ImageIndex

  

Ordinal position for the image displayed in the fixed header for the column title.

TGridColumnTitle.ImageLayout

  

The layout used for any image in the column title.

TGridColumnTitle.Layout

  

Vertical alignment for the Caption text displayed in the column title.

TGridColumnTitle.MultiLine

  

Indicates whether the column title can be displayed as multiple lines.

TGridColumnTitle.PrefixOption

  

Indicates if accelerator keys are used in the column title.


Version 3.2 Generated 2024-02-25 Home