New to Telerik UI for WinForms? Start a free 30-day trial

Supplies the document and completion behavior for a bibliographic-source dialog.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class AddNewBibliographicSourceDialogContext

Inheritance: objectAddNewBibliographicSourceDialogContext

Constructors

Initializes the context used to add or edit a bibliographic source.

C#
public AddNewBibliographicSourceDialogContext(RadDocument document, string sourceName = null, bool insertFieldOnClose = true, Action<BibliographicSource> callBackOnClosed = null)
Parameters:documentRadDocument

The document that owns the source collection and selected bibliographic style.

sourceNamestring

The tag of an existing source to edit, or null to create a source.

insertFieldOnClosebool

Whether confirming the dialog also inserts a citation field.

callBackOnClosedAction<BibliographicSource>

An optional callback invoked with the confirmed source.

Properties

Gets or sets the tag of the source to edit; an empty or unmatched tag is treated as a request to create a source.

C#
public string BRSourceName { get; set; }

Gets or sets the callback invoked with the source after the dialog confirms it.

C#
public Action<BibliographicSource> CallBackOnClosed { get; set; }

Gets or sets the document whose bibliographic sources are edited.

C#
public RadDocument Document { get; set; }

Gets or sets whether confirmation should insert a citation field for the saved source.

C#
public bool InsertFieldOnClose { get; set; }

Methods

Inserts a citation field into Document and displays the field result.

C#
public void InsertCitationField(CitationField field)
Parameters:fieldCitationField

The citation field to insert.