New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public class CalloutTargetManager : IDisposable

Inheritance: objectCalloutTargetManager

Implements: IDisposable

Constructors

Initializes a new instance pf the CalloutTargetManager class.

C#
public CalloutTargetManager(RadCalloutForm calloutForm)
Parameters:calloutFormRadCalloutForm

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.

C#
protected virtual void AdjustLocation()

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

C#
public bool AttachPlacementTarget(Control control)
Parameters:controlControl

The control to attach to.

Returns:

bool

A value indicating whether the attach is successful.

Attaches to a RadElement and follows its bounds for changes, its owner control for bounds changes and the parent form for location changes.

C#
public bool AttachPlacementTarget(RadElement element)
Parameters:elementRadElement

The element to attach to.

Returns:

bool

A value indicating whether the attach is successful.

Detaches from all events and releases all resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

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

C#
public Rectangle GetTargetRectangle()
Returns:

Rectangle

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.

C#
public void ReleasePlacementTargets()