ClassCalloutTargetManager
A class responsible for following the bounds changes of the target control or element, or when their owner form is moved when the callout is shown.
Definition
Namespace:Telerik.WinControls.UI.Callout
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalloutTargetManager : IDisposable
Inheritance: objectCalloutTargetManager
Implements:
Constructors
CalloutTargetManager(RadCalloutForm)
Initializes a new instance pf the CalloutTargetManager class.
Declaration
public CalloutTargetManager(RadCalloutForm calloutForm)
Parameters
calloutForm
The owner callout form.
Methods
AdjustLocation()
Adjusts the location of the owner RadCalloutForm when the target control/element changes its bounds or when the target form location is changed.
Declaration
protected virtual void AdjustLocation()
AttachPlacementTarget(Control)
Attaches to a Control and follows its bounds for changes and the parent form for location changes.
AttachPlacementTarget(RadElement)
Attaches to a RadElement and follows its bounds for changes, its owner control for bounds changes and the parent form for location changes.
Declaration
public bool AttachPlacementTarget(RadElement element)
Parameters
element
The element to attach to.
Returns
A value indicating whether the attach is successful.
Dispose()
Detaches from all events and releases all resources.
Declaration
public void Dispose()
Implements
GetTargetRectangle()
Gets the rectangle of target control/element in screen coordinates.
Declaration
public Rectangle GetTargetRectangle()
Returns
The rectangle of target control/element in screen coordinates.
ReleasePlacementTargets()
Detaches all events from target element, target control and their owner - target form and releases their references.
Declaration
public void ReleasePlacementTargets()