Skip to main content
A newer version of this page is available. .

TdxRichEditControlInsertPageBreak Class

An action object that corresponds to the InsertPageBreak command in the Rich Edit control.

Declaration

TdxRichEditControlInsertPageBreak = class(
    TdxRichEditControlAction
)

Remarks

This class does not introduce any new public members. Executing a TdxRichEditControlInsertPageBreak action object inserts a page break at the current caret position. If there is a text selection within the current document, it is replaced by the column break.

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

  • The Rich Edit control’s ReadOnly property is set to False;

  • The current selection (i.e., the caret or text selection) is not located within a header, footer, floating object, or table.

To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlInsertPageBreak action object, use the sdxRichEditCommandInsertPageBreakMenuCaption and sdxRichEditCommandInsertPageBreakDescription resource strings, respectively.

See Also