TdxRichEditControlNewDocument Class
In This Article
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 CreateTrue
passed as its ARaise
parameter is equivalent to the Tdx
action object execution.
#Inheritance
TObject
TPersistent
TComponent
TBasicAction
TContainedAction
TCustomAction
TAction
TdxBasicAction
TdxRichEditControlAction
TdxRichEditControlNewDocument
See Also