📄 document.txt
字号:
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
To determine if a particular string exists in the list of strings, call the Find method. To sort the list of strings, use the Sort
method. To determine if the list is sorted, check the value of the Sorted property. You can decide whether the list can contain
duplicate strings using the Duplicates property.
Each string can be associated with an object. The objects associated with strings are commonly used to place a bitmap in an
owner-draw control. If you want to add a string and an object to string list at the same time, use the AddObject method. You
can access a particular object by its position in the list of objects using the Objects property. To find the position of the object
in the list, use the IndexOfObject method. To insert an object, call the InsertObject method. The Delete, Move, Clear, and
Exchange methods operate on the object associated with a string as well as on the string itself. For example, calling Clear
removes all strings and all their associated objects.
You can store strings in a file and then load them all at one using the LoadFromFile method. To save the strings to a file, use
the SaveToFile method.
In addition to these properties, methods, and events, this object also has the methods that apply to all objects.
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
To determine if a particular string exists in the list of strings, call the Find method. To sort the list of strings, use the Sort
method. To determine if the list is sorted, check the value of the Sorted property. You can decide whether the list can contain
duplicate strings using the Duplicates property.
Each string can be associated with an object. The objects associated with strings are commonly used to place a bitmap in an
owner-draw control. If you want to add a string and an object to string list at the same time, use the AddObject method. You
can access a particular object by its position in the list of objects using the Objects property. To find the position of the object
in the list, use the IndexOfObject method. To insert an object, call the InsertObject method. The Delete, Move, Clear, and
Exchange methods operate on the object associated with a string as well as on the string itself. For example, calling Clear
removes all strings and all their associated objects.
You can store strings in a file and then load them all at one using the LoadFromFile method. To save the strings to a file, use
the SaveToFile method.
In addition to these properties, methods, and events, this object also has the methods that apply to all objects.
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
To determine if a particular string exists in the list of strings, call the Find method. To sort the list of strings, use the Sort
method. To determine if the list is sorted, check the value of the Sorted property. You can decide whether the list can contain
duplicate strings using the Duplicates property.
Each string can be associated with an object. The objects associated with strings are commonly used to place a bitmap in an
owner-draw control. If you want to add a string and an object to string list at the same time, use the AddObject method. You
can access a particular object by its position in the list of objects using the Objects property. To find the position of the object
in the list, use the IndexOfObject method. To insert an object, call the InsertObject method. The Delete, Move, Clear, and
Exchange methods operate on the object associated with a string as well as on the string itself. For example, calling Clear
removes all strings and all their associated objects.
You can store strings in a file and then load them all at one using the LoadFromFile method. To save the strings to a file, use
the SaveToFile method.
In addition to these properties, methods, and events, this object also has the methods that apply to all objects.
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
To determine if a particular string exists in the list of strings, call the Find method. To sort the list of strings, use the Sort
method. To determine if the list is sorted, check the value of the Sorted property. You can decide whether the list can contain
duplicate strings using the Duplicates property.
Each string can be associated with an object. The objects associated with strings are commonly used to place a bitmap in an
owner-draw control. If you want to add a string and an object to string list at the same time, use the AddObject method. You
can access a particular object by its position in the list of objects using the Objects property. To find the position of the object
in the list, use the IndexOfObject method. To insert an object, call the InsertObject method. The Delete, Move, Clear, and
Exchange methods operate on the object associated with a string as well as on the string itself. For example, calling Clear
removes all strings and all their associated objects.
You can store strings in a file and then load them all at one using the LoadFromFile method. To save the strings to a file, use
the SaveToFile method.
In addition to these properties, methods, and events, this object also has the methods that apply to all objects.
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
To determine if a particular string exists in the list of strings, call the Find method. To sort the list of strings, use the Sort
method. To determine if the list is sorted, check the value of the Sorted property. You can decide whether the list can contain
duplicate strings using the Duplicates property.
Each string can be associated with an object. The objects associated with strings are commonly used to place a bitmap in an
owner-draw control. If you want to add a string and an object to string list at the same time, use the AddObject method. You
can access a particular object by its position in the list of objects using the Objects property. To find the position of the object
in the list, use the IndexOfObject method. To insert an object, call the InsertObject method. The Delete, Move, Clear, and
Exchange methods operate on the object associated with a string as well as on the string itself. For example, calling Clear
removes all strings and all their associated objects.
You can store strings in a file and then load them all at one using the LoadFromFile method. To save the strings to a file, use
the SaveToFile method.
In addition to these properties, methods, and events, this object also has the methods that apply to all objects.
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
To determine if a particular string exists in the list of strings, call the Find method. To sort the list of strings, use the Sort
method. To determine if the list is sorted, check the value of the Sorted property. You can decide whether the list can contain
duplicate strings using the Duplicates property.
Each string can be associated with an object. The objects associated with strings are commonly used to place a bitmap in an
owner-draw control. If you want to add a string and an object to string list at the same time, use the AddObject method. You
can access a particular object by its position in the list of objects using the Objects property. To find the position of the object
in the list, use the IndexOfObject method. To insert an object, call the InsertObject method. The Delete, Move, Clear, and
Exchange methods operate on the object associated with a string as well as on the string itself. For example, calling Clear
removes all strings and all their associated objects.
You can store strings in a file and then load them all at one using the LoadFromFile method. To save the strings to a file, use
the SaveToFile method.
In addition to these properties, methods, and events, this object also has the methods that apply to all objects.
The TStringList object maintains a list of strings. Use a string list object when you are managing a list of strings that is not
maintained by a control.
You can add, delete, insert, move, and exchange strings using the Add, Delete, Insert, Move, and Exchange methods. The
Clear method clears all the strings in the list of strings. The Count property contains the number of strings in the list. Each
string list object has a Strings property that lets you access a particular string by its position in the list of strings. To find the
position of a string in the list, use the IndexOf method.
If you want to add several strings at once to a list of strings, use the AddStrings method. You can assign one strings object to
another using the Assign method.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -