Vcl.Controls.TCustomGestureCollection.FindGesture

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindGesture(AGestureID: TGestureID): TCustomGestureCollectionItem; overload; virtual; abstract;
function FindGesture(const AName: string): TCustomGestureCollectionItem; overload; virtual; abstract;

C++

virtual TCustomGestureCollectionItem* __fastcall FindGesture(TGestureID AGestureID) = 0 /* overload */;
virtual TCustomGestureCollectionItem* __fastcall FindGesture(const System::UnicodeString AName) = 0 /* overload */;

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TCustomGestureCollection

Description

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.

See Also