Supplies the document and completion behavior for a bibliographic-source dialog.
Definition
Namespace:Telerik.WinForms.Documents.UI.Extensibility
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class AddNewBibliographicSourceDialogContext
Inheritance: objectAddNewBibliographicSourceDialogContext
Constructors
Initializes the context used to add or edit a bibliographic source.
public AddNewBibliographicSourceDialogContext(RadDocument document, string sourceName = null, bool insertFieldOnClose = true, Action<BibliographicSource> callBackOnClosed = null)
The document that owns the source collection and selected bibliographic style.
sourceNamestringThe tag of an existing source to edit, or null to create a source.
insertFieldOnCloseboolWhether 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.
public string BRSourceName { get; set; }
Gets or sets the callback invoked with the source after the dialog confirms it.
public Action<BibliographicSource> CallBackOnClosed { get; set; }
Gets or sets the document whose bibliographic sources are edited.
public RadDocument Document { get; set; }
Gets or sets whether confirmation should insert a citation field for the saved source.
public bool InsertFieldOnClose { get; set; }
Methods
Inserts a citation field into Document and displays the field result.
public void InsertCitationField(CitationField field)
The citation field to insert.