Back to Devexpress

ASPxRichEdit.CalculateDocumentVariable Event

aspnet-devexpress-dot-web-dot-aspxrichedit-dot-aspxrichedit-96ef6113.md

latest3.4 KB
Original Source

ASPxRichEdit.CalculateDocumentVariable Event

Fires when the DOCVARIABLE field field is updated.

Namespace : DevExpress.Web.ASPxRichEdit

Assembly : DevExpress.Web.ASPxRichEdit.v25.2.dll

NuGet Package : DevExpress.Web.Office

Declaration

csharp
public event CalculateDocumentVariableEventHandler CalculateDocumentVariable
vb
Public Event CalculateDocumentVariable As CalculateDocumentVariableEventHandler

Event Data

The CalculateDocumentVariable event's data class is CalculateDocumentVariableEventArgs. The following properties provide information specific to this event:

PropertyDescription
ArgumentsProvides access to a collection of arguments within the DOCVARIABLE field.
FieldLockedGets or sets a locked attribute to the field for which the event occurs.
HandledGets or sets whether the default action is required.
KeepLastParagraphGets or sets whether the last paragraph of the inserted document is kept in the resulting document.
PreserveInsertedContentFormattingGets or sets whether to insert an additional hidden paragraph so that the inserted content is not formatted with the DOCVARIABLE field’s paragraph formatting.
ValueGets or sets the value of the DOCVARIABLE field that fired the event.
VariableNameGets the name of the document variable to which the DOCVARIABLE field refers.

Remarks

The CalculateDocumentVariable event is fired when the DOCVARIABLE field value is calculated.

You can handle this event to analyze DOCVARIABLE field switches and arguments, and provide custom content to insert into this field. The content can be of any supported type, and even as complex as another generated (mail merged) document.

To learn more, see the Document Variables Support demo.

See Also

Demo: Document Variables Support

ASPxRichEdit Class

ASPxRichEdit Members

DevExpress.Web.ASPxRichEdit Namespace