Class 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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Callout
Assembly: Telerik.WinControls.UI.dll
Syntax
public class CalloutTargetManager : IDisposable
  Constructors
CalloutTargetManager(RadCalloutForm)
Initializes a new instance pf the CalloutTargetManager class.
Declaration
public CalloutTargetManager(RadCalloutForm calloutForm)
  Parameters
| 
        RadCalloutForm
        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 System.Windows.Forms.Control and follows its bounds for changes and the parent form for location changes.
Declaration
public bool AttachPlacementTarget(Control control)
  Parameters
| 
        System.Windows.Forms.Control
        control
         The control to attach to.  | 
    
Returns
| 
        System.Boolean
         A value indicating whether the attach is successful.  | 
    
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
| 
        RadElement
        element
         The element to attach to.  | 
    
Returns
| 
        System.Boolean
         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
| 
        System.Drawing.Rectangle
         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()