API:Vcl.Touch.GestureMgr.TGestureCollection.FindGesture
Delphi
function FindGesture(AGestureID: TGestureID): TCustomGestureCollectionItem; overload; override;
function FindGesture(const AName: string): TCustomGestureCollectionItem; overload; override;
C++
virtual Vcl::Controls::TCustomGestureCollectionItem* __fastcall FindGesture(Vcl::Controls::TGestureID AGestureID)/* overload */;
virtual Vcl::Controls::TCustomGestureCollectionItem* __fastcall FindGesture(const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Touch.GestureMgr.pas Vcl.Touch.GestureMgr.hpp |
Vcl.Touch.GestureMgr | TGestureCollection |
Description
Finds a gesture with a given ID in the collection.
Vcl.Touch.GestureMgr.TGestureCollection.FindGesture inherits from Vcl.Controls.TCustomGestureCollection.FindGesture. All content below this line refers to Vcl.Controls.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.