Class
RadCallout

The RadCallout component can host any Control and is used to display additional information, warnings, hints, or to highlight relevant data. It provides a flexible way to create callout forms with customizable appearance, arrow direction, and animation effects.

Definition

Constructors

RadCallout()

Initializes a new instance of the RadCallout class.

Declaration

cs-api-definition
public RadCallout()

Properties

AnimationManager

Gets the animation manager for the callout, which controls all animation settings and is responsible for showing and hiding animations. Use this property to configure the callout's animation behavior.

Declaration

cs-api-definition
public CalloutAnimationManager AnimationManager { get; }

Property Value

CalloutAnimationManager

ArrowDirection

Gets or sets the direction of the callout's arrow. The arrow direction determines which side of the callout the arrow points from.

Declaration

cs-api-definition
public ArrowDirection ArrowDirection { get; set; }

Property Value

ArrowDirection

ArrowSize

Gets or sets the size of the callout's arrow. This property controls both the width and height of the arrow element.

Declaration

cs-api-definition
public Size ArrowSize { get; set; }

Property Value

Size

ArrowType

Gets or sets the arrow type of the callout. Determines the visual style of the callout's pointing arrow.

Declaration

cs-api-definition
public CalloutArrowType ArrowType { get; set; }

Property Value

CalloutArrowType

AssociatedControl

Gets or sets the control that is displayed inside the callout. Only a single control can be associated with RadCallout. If you need to display multiple controls, add them to a container control such as RadPanel and associate the container with the callout.

Declaration

cs-api-definition
public Control AssociatedControl { get; set; }

Property Value

Control

AutoClose

Gets or sets a value indicating whether the callout will automatically close when the user clicks outside of it. When true, the mouse is captured by the callout. When false, the user must close the callout manually or by calling Close().

Declaration

cs-api-definition
public bool AutoClose { get; set; }

Property Value

bool

CalloutForm

Gets the underlying RadCalloutForm instance that represents the callout window. This property provides access to the form for advanced configuration and manipulation.

Declaration

cs-api-definition
[Browsable(false)]
public RadCalloutForm CalloutForm { get; }

Property Value

RadCalloutForm

CalloutType

Gets or sets the shape type of the callout. Determines whether the callout has a rectangular or rounded rectangular appearance.

Declaration

cs-api-definition
public CalloutType CalloutType { get; set; }

Property Value

CalloutType

CloseAction

Gets or sets the action to perform when the callout form is about to be closed. Determines whether the callout form is hidden or disposed when closing.

Declaration

cs-api-definition
public CalloutCloseAction CloseAction { get; set; }

Property Value

CalloutCloseAction

CornerRadius

Gets or sets the corner radius for rounded rectangle callouts. This property is only applicable when CalloutType is set to RoundedRectangle.

Declaration

cs-api-definition
public int CornerRadius { get; set; }

Property Value

int

Distance

Gets or sets the distance between the callout and the target control or element. This distance is measured in pixels and affects the positioning of the callout relative to its target.

Declaration

cs-api-definition
public int Distance { get; set; }

Property Value

int

DropShadow

Gets or sets a value indicating whether the callout displays a drop shadow effect. The shadow appearance cannot be customized beyond enabling or disabling it.

Declaration

cs-api-definition
public bool DropShadow { get; set; }

Property Value

bool

ErrorCaption

Gets or sets the title for error messages displayed when the callout form is disposed. This message is shown when attempting to display a callout that has already been disposed.

Declaration

cs-api-definition
public static string ErrorCaption { get; set; }

Property Value

string

ErrorMessage

Gets or sets the content for error messages displayed when the callout form is disposed. This message is shown when attempting to display a callout that has already been disposed.

Declaration

cs-api-definition
public static string ErrorMessage { get; set; }

Property Value

string

MoveWithParentForm

Gets or sets a value indicating whether the callout will move along with its parent form when the form is moved. This property only has effect when AutoClose is set to false.

Declaration

cs-api-definition
public bool MoveWithParentForm { get; set; }

Property Value

bool

ThemeName

Gets or sets the theme name for the callout. The theme controls the visual appearance of the callout form. If not specified, the callout will use the default theme.

Declaration

cs-api-definition
[Browsable(true)]
public string ThemeName { get; set; }

Property Value

string

Methods

Close()

Closes the callout form. The actual behavior depends on the CloseAction property setting.

Declaration

cs-api-definition
public void Close()

CreateCalloutForm()

Creates the callout form instance. This method can be overridden to provide custom callout form implementation.

Declaration

cs-api-definition
protected virtual RadCalloutForm CreateCalloutForm()

Returns

RadCalloutForm

A new instance of RadCalloutForm.

Dispose(bool)

Releases the resources used by the component and its associated callout form.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides Component.Dispose(bool)

Show(Control)

Shows the callout form pointing to a specific control. If the callout form has been disposed, an error message will be displayed instead.

Declaration

cs-api-definition
public void Show(Control control)

Parameters

control

Control

The control that the callout should point to.

Show(Control, Control, CalloutShapeSettings)

Shows a callout by given content over the provided target control.

Declaration

cs-api-definition
public static RadCallout Show(Control content, Control targetControl, CalloutShapeSettings shapeSettings = null)

Parameters

content

Control

The control that represents the content of the callout.

targetControl

Control

The target control.

shapeSettings

CalloutShapeSettings

The callout shape settings related to callout shape, arrow direction, arrow size etc.

Returns

RadCallout

The callout.

Show(Control, Point, CalloutShapeSettings)

Shows a callout by given content over the provided target point.

Declaration

cs-api-definition
public static RadCallout Show(Control content, Point targetPoint, CalloutShapeSettings shapeSettings = null)

Parameters

content

Control

The control that represents the content of the callout.

targetPoint

Point

The target screen location.

shapeSettings

CalloutShapeSettings

The callout shape settings related to callout shape, arrow direction, arrow size etc.

Returns

RadCallout

The callout.

Show(Control, RadElement, CalloutShapeSettings)

Shows a callout by given content over the provided target element.

Declaration

cs-api-definition
public static RadCallout Show(Control content, RadElement targetElement, CalloutShapeSettings shapeSettings = null)

Parameters

content

Control

The control that represents the content of the callout.

targetElement

RadElement

The target element.

shapeSettings

CalloutShapeSettings

The callout shape settings related to callout shape, arrow direction, arrow size etc.

Returns

RadCallout

The callout.

Show(Control, string, string, string, CalloutShapeSettings)

Shows a screen tip in a callout over the provided target control.

Declaration

cs-api-definition
public static RadCallout Show(Control targetControl, string content, string caption = "", string footer = "", CalloutShapeSettings shapeSettings = null)

Parameters

targetControl

Control

The target control.

content

string

The content of tool tip.

caption

string

The header(Caption) of tool tip.

footer

string

The footer of tool tip.

shapeSettings

CalloutShapeSettings

The callout shape settings related to callout shape, arrow direction, arrow size etc.

Returns

RadCallout

Show(Point)

Shows the callout form pointing to a specific location in screen coordinates. If the callout form has been disposed, an error message will be displayed instead.

Declaration

cs-api-definition
public void Show(Point location)

Parameters

location

Point

The screen coordinates where the callout should point to.

Show(Point, string, string, string, CalloutShapeSettings)

Shows a screen tip in a callout over the provided target point.

Declaration

cs-api-definition
public static RadCallout Show(Point targetPoint, string content, string caption = "", string footer = "", CalloutShapeSettings shapeSettings = null)

Parameters

targetPoint

Point

The target screen location.

content

string

The content of tool tip.

caption

string

The header(Caption) of tool tip.

footer

string

The footer of tool tip.

shapeSettings

CalloutShapeSettings

The callout shape settings related to callout shape, arrow direction, arrow size etc.

Returns

RadCallout

Show(RadCallout, Control, string, string, string)

Shows a screen tip in a given callout over the provided target control.

Declaration

cs-api-definition
public static void Show(RadCallout callout, Control targetControl, string content, string caption = "", string footer = "")

Parameters

callout

RadCallout

The callout.

targetControl

Control

The target control.

content

string

The content of tool tip.

caption

string

The header(Caption) of tool tip.

footer

string

The footer of tool tip.

Show(RadCallout, Point, string, string, string)

Shows a screen tip in a given callout over the provided target screen point.

Declaration

cs-api-definition
public static void Show(RadCallout callout, Point targetPoint, string content, string caption = "", string footer = "")

Parameters

callout

RadCallout

The callout.

targetPoint

Point

The target point.

content

string

The content of tool tip.

caption

string

The header(Caption) of tool tip.

footer

string

The footer of tool tip.

Show(RadCallout, RadElement, string, string, string)

Shows a screen tip in a given callout over the provided target element.

Declaration

cs-api-definition
public static void Show(RadCallout callout, RadElement targetElement, string content, string caption = "", string footer = "")

Parameters

callout

RadCallout

The callout.

targetElement

RadElement

The target element.

content

string

The content of tool tip.

caption

string

The header(Caption) of tool tip.

footer

string

The footer of tool tip.

Show(RadElement)

Shows the callout form pointing to a specific RadElement. If the callout form has been disposed, an error message will be displayed instead.

Declaration

cs-api-definition
public void Show(RadElement element)

Parameters

element

RadElement

The RadElement that the callout should point to.

Show(RadElement, string, string, string, CalloutShapeSettings)

Shows a screen tip in a callout over the provided target element.

Declaration

cs-api-definition
public static RadCallout Show(RadElement targetElement, string content, string caption = "", string footer = "", CalloutShapeSettings shapeSettings = null)

Parameters

targetElement

RadElement

The target element.

content

string

The content of tool tip.

caption

string

The header(Caption) of tool tip.

footer

string

The footer of tool tip.

shapeSettings

CalloutShapeSettings

The callout shape settings related to callout shape, arrow direction, arrow size etc.

Returns

RadCallout

Events

Closed

Occurs when the callout has been closed.

Declaration

cs-api-definition
public event FormClosedEventHandler Closed

Event Value

FormClosedEventHandler

Closing

Occurs when the callout is about to be closed. This event is cancellable.

Declaration

cs-api-definition
public event FormClosingEventHandler Closing

Event Value

FormClosingEventHandler

Opened

Occurs when the callout has been opened and is visible.

Declaration

cs-api-definition
public event EventHandler Opened

Event Value

EventHandler

Opening

Occurs when the callout is about to be opened. This event is cancellable.

Declaration

cs-api-definition
public event CancelEventHandler Opening

Event Value

CancelEventHandler