API:FMX.Gestures.TGestureCollection.AddGesture
Delphi
function AddGesture: TCustomGestureCollectionItem; override;
C++
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall AddGesture();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TGestureCollection |
Description
Creates and adds a new gesture to the collection.
FMX.Gestures.TGestureCollection.AddGesture inherits from FMX.Types.TCustomGestureCollection.AddGesture. All content below this line refers to FMX.Types.TCustomGestureCollection.AddGesture.
Creates and adds a new gesture to the collection.
Override AddGesture in descending classes to implement proper creation and adding of a gesture to the collection. AddGesture creates a new TCustomGestureCollectionItem object, adds it to the internal list, and then returns it to the caller.