FMX.Gestures.TGestureManager.FindGesture
Delphi
function FindGesture(const AControl: TComponent; AGestureID: TGestureID): TCustomGestureCollectionItem; override;
function FindGesture(const AControl: TComponent; const AName: string): TCustomGestureCollectionItem; override;
C++
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindGesture(System::Classes::TComponent* const AControl, Fmx::Types::TGestureID AGestureID)/* overload */;
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindGesture(System::Classes::TComponent* const AControl, const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TGestureManager |
Description
Finds the collection item holding a gesture given by an ID and associated with a control.
FindGesture has two forms. For the first one, the search is performed after a gesture ID given as a TGestureID, while for the second form the search is performed after the name given as a string. In both forms, the methods return the gesture as a TCustomGestureCollectionItem if successful, or nil otherwise.