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

TCustomGrid.SaveOptions

Options which control the information saved and loaded for the grid control.

Declaration

Source position: grids.pas line 1287

protected property TCustomGrid.SaveOptions : TSaveOptions
  read FsaveOptions
  write FSaveOptions;

Description

SaveOptions is a TSaveOptions property with the set of options enabled when saving values in the grid to a file or stream. The options indicate whether design-time information, column attributes, cell content and positions are included in the values save for the grid control. The TSaveOption values included in or excluded from the property affect the following:

soDesign
Design-time information for the control, including: column count, row count, number of fixed columns and rows, default column width, default row width and height, color, column definitions (when enabled in the control), and row heights with non-default values. Also includes the settings in the Options and Options2 properties for the control.
soPosition
Run-time values for the top and left coordinates for the grid, and the current column and row number.
soRangeSelect
Requires the soPosition option. Stores the left, top, bottom, and right coordinates for the range in the Selection property.
soContent
Stores the UTF-8-encoded text for each of the cells in the grid control.

The default values in SaveOptions are not assigned in TCustomGrid, and must be provided in a descendent class like TCustomStringGrid.

SaveOptions also determines the data available and processed when loading grid information in the LoadFromFile or LoadFromStream methods.

See also

TCustomGrid.SaveToFile

  

Saves grid information to a file with the specified name.

TCustomGrid.SaveToStream

  

Saves grid information to the specified stream.

TCustomGrid.LoadFromFile

  

Loads grid data from a file with the specified file name.

TCustomGrid.LoadFromStream

  

Loads grid data from the specified stream.


Version 4.0 Generated 2025-05-03 Home