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

Represents the context for the Insert Caption dialog in the Telerik UI framework.

Definition

Namespace:Telerik.Windows.Documents.UI.Extensibility

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class InsertCaptionDialogContext

Inheritance: objectInsertCaptionDialogContext

Constructors

C#
public InsertCaptionDialogContext(RadDocument document, bool shouldClearSelectionOnClose)
Parameters:documentRadDocumentshouldClearSelectionOnClosebool

Properties

Represents the context for the Insert Caption dialog in the Telerik RadRichTextBox.

C#
public RadDocument Document { get; set; }

Methods

Cancels the current operation of the Insert Caption dialog.

C#
public void CancelCallback()

Inserts a caption with the specified definition, text, and options.

C#
public void InsertCaption(CaptionDefinition newCaptionDefinition, string captionText, bool includeLabel, bool insertBelow)
Parameters:newCaptionDefinitionCaptionDefinition

The definition of the caption to be inserted.

captionTextstring

The text of the caption.

includeLabelbool

Determines whether the label included.

insertBelowbool

Determines whether the caption text should be bold.