Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxRichEditControlNewDocument Class

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

#Declaration

Delphi
TdxRichEditControlNewDocument = class(
    TdxRichEditControlAction
)

#Remarks

This class does not introduce any new public members. Executing the TdxRichEditControlNewDocument action object does the following:

  • Closes the currently opened document and raises the OnDocumentClosing event.
  • Creates a new blank document and raises the OnEmptyDocumentCreated event.

UI elements linked to a TdxRichEditControlNewDocument action object are enabled only if the Rich Edit control’s Options.Behavior.CreateNew property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled.

Note

A CreateNewDocument function call with True passed as its ARaiseDocumentClosing parameter is equivalent to the TdxRichEditControlNewDocument action object execution.

See Also