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.

Definition

Namespace:Telerik.WinControls.UI.Callout

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class CalloutTargetManager : IDisposable

Inheritance: objectCalloutTargetManager

Implements: IDisposable

Constructors

CalloutTargetManager(RadCalloutForm)

Initializes a new instance pf the CalloutTargetManager class.

Declaration

cs-api-definition
public CalloutTargetManager(RadCalloutForm calloutForm)

Parameters

calloutForm

RadCalloutForm

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

cs-api-definition
protected virtual void AdjustLocation()

AttachPlacementTarget(Control)

Attaches to a Control and follows its bounds for changes and the parent form for location changes.

Declaration

cs-api-definition
public bool AttachPlacementTarget(Control control)

Parameters

control

Control

The control to attach to.

Returns

bool

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

cs-api-definition
public bool AttachPlacementTarget(RadElement element)

Parameters

element

RadElement

The element to attach to.

Returns

bool

A value indicating whether the attach is successful.

Dispose()

Detaches from all events and releases all resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetTargetRectangle()

Gets the rectangle of target control/element in screen coordinates.

Declaration

cs-api-definition
public Rectangle GetTargetRectangle()

Returns

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

cs-api-definition
public void ReleasePlacementTargets()