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

TValueListEditor.TitleCaptions

Title captions used for columns in the control.

Declaration

Source position: valedit.pas line 315

published property TValueListEditor.TitleCaptions : TStrings
  read FTitleCaptions
  write SetTitleCaptions;

Description

TitleCaptions is a TStrings property with the title captions used for columns in the control. TitleCaptions should have 2 lines with the titles used for the Key and Value columns in the grid.

When TitleCaptions is empty (0 lines), the values in rsVLEKey and rsVLEValue are used as the captions for the respective columns. If a line is omitted in TitleCaptions, the corresponding resource string is used as the default value for the caption.

TitleCaptions is used in the ShowColumnTitles method to assign and display the column titles. Values in TitleCaptions are updated when LoadContent or LoadFromCSVStream is called. Changing values in TitleCaptions causes the control to be redrawn.

See also

TValueListEditor.ShowColumnTitles

  

Assigns and displays the column titles for the Key and Value columns.

TValueListEditor.LoadContent

  

Loads configuration and content from the specified XML configuration file.

TValueListEditor.LoadFromCSVStream

  

Loads the content for the control from the comma-separated values in the specified stream.

rsVLEKey

  

Default caption for the Key column; value is 'Key'

rsVLEValue

  

Default caption for the Value column; value is 'Value'


Version 4.0 Generated 2025-05-03 Home