Class TidElements

Unit

Declaration

type TidElements = class(TXOMClass)

Description

TidElements

Hierarchy

  • TXOMClass
  • TidElements

Overview

Methods

Public procedure AfterConstruction; override;
Public procedure BeforeDestruction; override;
Public procedure SortByProp (const APropNames: WideString; const ASortType: TSortType = stAscending); virtual;
Public procedure SortByProperties (const APropNames: WideString; const ASortType: TSortType = stAscending); virtual;
Public procedure Merge (AElems: TidElements);
Public function FindNamed (const AName: WideString): TidElement;
Public function FindNamed2 (const AName: WideString; const ARecursive: Boolean = True): TidElement;
Public function FindPropValue (const AProperty: WideString; const AValue: Variant; ARecursive: Boolean = True): TidElement;
Public function FindValue (const AValue: Variant; const ARecursive: Boolean = False): TidElement;
Public function EnumValues (const AValue: Variant; AResult: TList; const ARecursive: Boolean = False): Boolean;
Public function IndexFor (const AName: WideString): Integer;
Public function IndexOf (const AName: WideString): Integer; reintroduce; virtual;
Public function NameExists (const AName: WideString): Boolean;
Public function AddNamed (const AName: WideString): TidElement;

Properties

Public property Items[Index:Integer]: TidElement read GetItem write SetItem;

Description

Methods

Public procedure AfterConstruction; override;
 
Public procedure BeforeDestruction; override;
 
Public procedure SortByProp (const APropNames: WideString; const ASortType: TSortType = stAscending); virtual;

identical to SortByProperties

Public procedure SortByProperties (const APropNames: WideString; const ASortType: TSortType = stAscending); virtual;

sort the list based on the property values set in the elements. The APropNames can be a comma separated list of property names

Public procedure Merge (AElems: TidElements);

merge a class of TidElements with the this class

Public function FindNamed (const AName: WideString): TidElement;

find an element based on its name

Public function FindNamed2 (const AName: WideString; const ARecursive: Boolean = True): TidElement;

find an element based on its name in a hierarchy

Public function FindPropValue (const AProperty: WideString; const AValue: Variant; ARecursive: Boolean = True): TidElement;

find the elements that has a prop with specific value

Public function FindValue (const AValue: Variant; const ARecursive: Boolean = False): TidElement;

find an element based on its value

Public function EnumValues (const AValue: Variant; AResult: TList; const ARecursive: Boolean = False): Boolean;

enum all elements with a specific value

Public function IndexFor (const AName: WideString): Integer;

find the index of an Element

Public function IndexOf (const AName: WideString): Integer; reintroduce; virtual;

indentical to IndexFor

Public function NameExists (const AName: WideString): Boolean;

return wether a specific name exists

Public function AddNamed (const AName: WideString): TidElement;

add a named element

Properties

Public property Items[Index:Integer]: TidElement read GetItem write SetItem;

a list of items within this list


Generated by PasDoc 0.15.0.