API:FMX.Gestures.TGestureCollection.FindGesture
Delphi
function FindGesture(AGestureID: TGestureID): TCustomGestureCollectionItem; overload; override;
function FindGesture(const AName: string): TCustomGestureCollectionItem; overload; override;
C++
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindGesture(Fmx::Types::TGestureID AGestureID)/* overload */;
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindGesture(const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TGestureCollection |
Description
Finds a gesture with a given ID in the collection.
FMX.Gestures.TGestureCollection.FindGesture inherits from FMX.Types.TCustomGestureCollection.FindGesture. All content below this line refers to FMX.Types.TCustomGestureCollection.FindGesture.
Finds a gesture with a given ID in the collection.
Override FindGesture in descending classes to implement proper finding of gestures by their ID in the collection. FindGesture is expected to return a TCustomGestureCollectionItem instance if the gesture is found, or nil if the ID is not found.