Vcl.Touch.GestureMgr.TGestureCollectionItem.AssignTo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AssignTo(Dest: TPersistent); override;

C++

virtual void __fastcall AssignTo(System::Classes::TPersistent* Dest);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Touch.GestureMgr.pas
Vcl.Touch.GestureMgr.hpp
Vcl.Touch.GestureMgr TGestureCollectionItem

Description

Overrides the inherited AssignTo function to enable assignments to TGestureCollectionItem objects.

Do not call the protected AssignTo method in applications. The Assign method of a persistent object calls AssignTo if the control is passed as Source and the persistent object cannot determine how to copy the properties of the control. The Dest parameter is the persistent object that should have its properties copied from the control.

As implemented in TGestureCollectionItem, AssignTo checks whether the Dest parameter is a TGestureCollectionItem object, and, if so, assigns values to its Action, Deviation, ErrorMargin, GestureID, Name, Options, and Points properties. This allows arbitrary controls to assign these to an associated gesture collection item object.

AssignTo is exposed as a protected method of TGestureCollectionItem. It can only be used in the implementation of a descendant class of TGestureCollectionItem.

See Also