Difference between revisions of "TStringList"
m (→Members) |
m (→Members) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Class used to store strings on a list.<br> | Class used to store strings on a list.<br> | ||
− | Can be created with [[TFile.CreateStringList]] and [[TFile.CreateStringListFromFile]] | + | Can be created with [[TFile.CreateStringList]] and [[TFile.CreateStringListFromFile]] |
− | |||
− | User constructable: ''' | + | User constructable: '''NO''' |
User destructable: '''YES''' | User destructable: '''YES''' | ||
Line 69: | Line 68: | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | function [[TStringList.Equals|Equals]](Strings: [[ | + | | function [[TStringList.Equals|Equals]](Strings: [[TStrings]]): boolean |
| | | | ||
| align="center" | no | | align="center" | no | ||
Line 148: | Line 147: | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | property [[TStringList.Values|Values]][ | + | | property [[TStringList.Values|Values]][name: String]: String |
| align="center" | RW | | align="center" | RW | ||
| align="center" | no | | align="center" | no |
Latest revision as of 17:56, 24 August 2013
Inheritance
Description
Class used to store strings on a list.
Can be created with TFile.CreateStringList and TFile.CreateStringListFromFile
User constructable: NO User destructable: YES
Members
Member declaration | Access mode | Inherited | |
---|---|---|---|
procedure Free | no | ||
function GetNamePath(): string | no | ||
function Add(S: string): Integer | no | ||
procedure Append(S: string) | no | ||
procedure AddStrings(Strings: TStrings) | no | ||
procedure Clear() | no | ||
procedure Delete(Index: Integer) | no | ||
function IndexOf(const S: string): Integer | no | ||
procedure Insert(Index: Integer; S: string) | no | ||
procedure LoadFromFile(FileName: string) | no | ||
procedure SaveToFile(FileName: string) | no | ||
procedure BeginUpdate() | no | ||
procedure EndUpdate() | no | ||
function Equals(Strings: TStrings): boolean | no | ||
procedure Exchange(Index1, Index2: Integer) | no | ||
function IndexOfName(Name: string): Integer | no | ||
procedure LoadFromStream(Stream: TStream) | no | ||
procedure Move(CurIndex, NewIndex: Integer) | no | ||
procedure SaveToStream(Stream: TStream) | no | ||
procedure SetText(Text: PChar) | no | ||
function AddObject(S: String; AObject: TObject): Integer | no | ||
function GetText(): PChar | no | ||
function IndexOfObject(AObject: TObject): Integer | no | ||
procedure InsertObject(Index: Integer; S: String; AObject: TObject) | no | ||
function Find(S: String; var Index: Integer): Boolean | no | ||
procedure Sort() | no | ||
property Count: Integer | R | no | |
property Text: String | RW | no | |
property CommaText: String | RW | no | |
property Strings[i: Integer]: String | RW | no | default |
property Objects[i: Integer]: TObject | RW | no | |
property Names[i: Integer]: String | R | no | |
property Values[name: String]: String | RW | no | |
property Duplicates: TDuplicates | RW | no | |
property Sorted: Boolean | RW | no | |
property OnChange: TNotifyEvent | RW | no | |
property OnChanging: TNotifyEvent | RW | no |