CalloutTargetManager
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
Initializes a new instance pf the CalloutTargetManager class.
public CalloutTargetManager(RadCalloutForm calloutForm)
The owner callout form.
Methods
Adjusts the location of the owner RadCalloutForm when the target control/element changes its bounds or when the target form location is changed.
protected virtual void AdjustLocation()
Attaches to a RadElement and follows its bounds for changes, its owner control for bounds changes and the parent form for location changes.
public bool AttachPlacementTarget(RadElement element)
The element to attach to.
Returns:A value indicating whether the attach is successful.
Detaches from all events and releases all resources.
public void Dispose()
Implements:
Gets the rectangle of target control/element in screen coordinates.
public Rectangle GetTargetRectangle()
The rectangle of target control/element in screen coordinates.
Detaches all events from target element, target control and their owner - target form and releases their references.
public void ReleasePlacementTargets()