API:FMX.Grid.TGridValues.Clear
Delphi
procedure Clear;
C++
HIDESBASE void __fastcall Clear();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TGridValues |
Description
Clear all data.
FMX.Grid.TGridValues.Clear inherits from System.Generics.Collections.TDictionary.Clear. All content below this line refers to System.Generics.Collections.TDictionary.Clear.
Clear all data.
Clear removes all keys and values from the dictionary. The Count property is set to 0. The capacity is also set to 0. This operation requires O(n) time, where n is Count, the number of dictionary entries.
Note: Clear does not free the items as they are removed. If you need to free them, use the OnKeyNotify event and the OnValueNotify event, which occur for every entry removed and provides the removed items.
See Also
Code Examples