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

SubDocument.AppendDocumentContent(Stream) Method

Appends content from stream.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

DocumentRange AppendDocumentContent(
    Stream stream
)

#Parameters

Name Type Description
stream Stream

A Stream representing a sequence of bytes interpreted as the content to append.

#Returns

Type Description
DocumentRange

A DocumentRange object representing a range with the appended content.

#Remarks

The AppendDocumentContent method imports the specified file into the internal document model.

After the file is successfully imported, the new document model is inserted at the end of the main document.

The appended text starts with a new paragraph and preserves formatting. It is appended to an existing section and gets all section details (header, footer, page and print layout).

If the text being inserted contains document styles which are not present in the current document, the styles are copied to the resulting document.

If the document whose content is being inserted contains floating objects, such as pictures or text boxes, they are inserted into the corresponding positions in a newly created range.

The inserted content’s format is determined automatically.

See Also