Class TTreeListItems
Unit
Declaration
type TTreeListItems = class(TObjectList)
Description
This is the list used for storing (sub)-items
Hierarchy
- TObject
- TList
- TObjectList
- TTreeListItems
Overview
Methods
![]() |
constructor create(parent:TTreeListItem;const TreeListView:TTreeListView); |
![]() |
function Add(caption:string=''):TTreelistItem; overload; |
![]() |
function Add(captions:array of string):TTreelistItem; overload; |
![]() |
function Add(Parent:TTreeListItem;caption:string=''):TTreelistItem; overload; |
![]() |
function GetRealItemCount(const countTyp:TRealItemCounting ) :integer; |
![]() |
function RealIndexOf(const item:ttreeListItem;const countTyp:TRealItemCounting):integer; |
![]() |
function GetItemWithRealIndex(index:integer;const countTyp:TRealItemCounting):TTreeListItem; |
![]() |
function FindItemWithText(caption: string): TTreeListItem; |
![]() |
function FindItemWithRecordText(text: string;pos: longint=0):TTreeListItem; |
![]() |
function find(searchFor: string; searchFields:cardinal; backward: boolean=false; loopAround: PBOOL=nil; startItem: TTreeListItem=nil; startColumn: longint=0; startTextPosition:longint=0): TTreeListRecordItem; overload; |
Properties
![]() |
property Items[Index: Integer]: TTreeListItem read Get write Put; |
Description
Methods
![]() |
constructor create(parent:TTreeListItem;const TreeListView:TTreeListView); |
![]() |
function Add(caption:string=''):TTreelistItem; overload; |
This adds an item with the given caption to this list |
![]() |
function Add(captions:array of string):TTreelistItem; overload; |
This adds an item with the given record texts |
![]() |
function Add(Parent:TTreeListItem;caption:string=''):TTreelistItem; overload; |
This adds an item with the given parent and caption |
![]() |
function GetRealItemCount(const countTyp:TRealItemCounting ) :integer; |
This counts all (direct and indirect) children of this item |
![]() |
function RealIndexOf(const item:ttreeListItem;const countTyp:TRealItemCounting):integer; |
This retrieve the real index of the given item |
![]() |
function GetItemWithRealIndex(index:integer;const countTyp:TRealItemCounting):TTreeListItem; |
This get the item which are certain real index See also
|
![]() |
function FindItemWithText(caption: string): TTreeListItem; |
This searches recursive for a item with the given caption Returnsthe first matching item or nil if nothing is found |
![]() |
function FindItemWithRecordText(text: string;pos: longint=0):TTreeListItem; |
This searches recursive for a item with text in the column pos (if pos = 0 this is the same as FindItemWithText) Returnsthe first matching item or nil if nothing is found |
![]() |
function find(searchFor: string; searchFields:cardinal; backward: boolean=false; loopAround: PBOOL=nil; startItem: TTreeListItem=nil; startColumn: longint=0; startTextPosition:longint=0): TTreeListRecordItem; overload; |
This searches the text searchFor in searchFields. Parameters
|
Properties
![]() |
property Items[Index: Integer]: TTreeListItem read Get write Put; |
access to the direct sub |
Generated by PasDoc 0.16.0.