Back to Devexpress

TdxRichEditControlInsertPageCountField Class

vcl-dxrichedit-dot-actions-aa8a20ae.md

latest2.4 KB
Original Source

TdxRichEditControlInsertPageCountField Class

An action object that corresponds to the InsertPageCountField command provided by the Rich Edit control.

Declaration

delphi
TdxRichEditControlInsertPageCountField = class(
    TdxRichEditControlAction
)

Remarks

This class does not introduce any new public members. Executing a TdxRichEditControlInsertPageCountField action object inserts a NUMPAGES field displaying the total number of pages in the current document. This action inserts the created document field at the current caret position (if text is selected, the field replaces it within the document).

UI elements linked to a TdxRichEditControlInsertPageCountField action object are enabled only if the following conditions are met:

  • The Rich Edit control’s ReadOnly property is set to False.
  • The Print Layout document view is active.
  • The header or footer editing mode is active.

Inheritance

TObject TPersistent TComponent TBasicAction TContainedAction TCustomAction TAction TdxBasicAction TdxRichEditControlAction TdxRichEditControlInsertPageCountField

See Also

TdxRichEditControlInsertPageNumberField

TdxRichEditControlInsertPageCountField Members

dxRichEdit.Actions Unit