vcl-dxrichedit-dot-types-b8932983.md
The procedural type for document variable calculation events.
TdxCalculateDocumentVariableEvent = procedure(Sender: TObject; E: TdxCalculateDocumentVariableEventArgs) of object;
| Name | Type | Description |
|---|---|---|
| Sender | TObject |
Provides access to the DevExpress Rich Text component that raised the document variable calculation event.
Cast the Sender parameter to the TdxRichEditControl or TdxRichEditDocumentServer class to access all public API members.
Tip
Call the Sender.ClassType function or use other RTTI functionality to identify the actual component type.
| | E | TdxCalculateDocumentVariableEventArgs |
Provides access to additional event parameters.
You can use these parameters to modify or disable predefined variable calculation routines.
|
Handle a document variable calculation event to modify or disable predefined variable calculation routines.
The following events reference the TdxCalculateDocumentVariableEvent procedural type:
TdxRichEditControlBase.OnCalculateDocumentVariableEnables you to insert custom content into a DOCVARIABLE field.TdxRichEditCustomDocumentServer.OnCalculateDocumentVariableEnables you to insert custom content into a DOCVARIABLE field. See Also
TdxCustomizeMergeFieldsEvent Procedural Type
TdxMailMergeRecordFinishedEvent Procedural Type