Skip to main content

TdxRichEditCustomDocumentServer.CreateNewDocument(Boolean) Method

Closes the opened document and creates a new blank document.

Declaration

function CreateNewDocument(ARaiseDocumentClosing: Boolean = False): Boolean; virtual;

Parameters

Name Type Description
ARaiseDocumentClosing Boolean

If True, the function raises the OnDocumentClosing event when the document server component is about to close the opened document. If False, the function raises no event.

Returns

Type Description
Boolean

True if a new document is successfully created; otherwise, False.

See Also