Class TIntegerDataListItem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TIntegerDataListItem = class(TCustomDataListItem)

Description

TIntegerDataListItem is a TCustomDataListItem specialized for specialized for holding integers.

Hierarchy

Overview

Fields

Private FValues: TOneDIntegerArray;

Methods

Private function GetValues(const Index: Integer): Integer;
Private procedure SetValues(const Index, Value: Integer);
Protected function GetValuesLength: integer; override;
Protected procedure ReadValues(Reader: TReader);
Protected procedure SetValuesLength(const Value: integer); override;
Protected procedure WriteValues(Writer: TWriter);
Protected procedure DefineProperties(Filer: TFiler); override;
Public procedure Assign(Source: TPersistent); override;

Properties

Public property Values[constIndex:Integer]: Integer read GetValues write SetValues;

Description

Fields

Private FValues: TOneDIntegerArray;

FValues: TOneDIntegerArray; FValues is the raw data stored by the TIntegerDataListItem. Normally, these values are access through the Values property which provides error checking.

Methods

Private function GetValues(const Index: Integer): Integer;

See Values.

Private procedure SetValues(const Index, Value: Integer);

See Values.

Protected function GetValuesLength: integer; override;

GetValuesLength retrieves the number of items stored in TIntegerDataListItem.

Protected procedure ReadValues(Reader: TReader);

ReadValues is used to read the contents of FValues from a stream.

Protected procedure SetValuesLength(const Value: integer); override;

SetValuesLength sets the number of items stored in TIntegerDataListItem.

Protected procedure WriteValues(Writer: TWriter);

WriteValues is used to write the contents of FValues to a stream.

Protected procedure DefineProperties(Filer: TFiler); override;

DefineProperties causes FValues to be written to and read from a stream.

Public procedure Assign(Source: TPersistent); override;

Assign copies all the values from Source (which must be a TCustomDataListItem) to the object calling Assign

Properties

Public property Values[constIndex:Integer]: Integer read GetValues write SetValues;

Values is used to access the data stored in the TIntegerDataListItem.

See also
ValueIndex
ValueIndex is a function used to determine the position or a particular data item within the array of data items in descendants of TCustomDataListItem.

Generated by PasDoc 0.12.1 on 2013-05-13 15:42:03