Back to Devexpress

IFormatDetectorService.DetectFormat(Stream) Method

officefileapi-devexpress-dot-xtrarichedit-dot-services-dot-iformatdetectorservice-dot-detectformat-x28-system-dot-io-dot-stream-x29.md

latest1.6 KB
Original Source

IFormatDetectorService.DetectFormat(Stream) Method

Determines the format of the document contained in the stream.

Namespace : DevExpress.XtraRichEdit.Services

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
DocumentFormat DetectFormat(
    Stream stream
)
vb
Function DetectFormat(
    stream As Stream
) As DocumentFormat

Parameters

NameTypeDescription
streamStream

A Stream object that is the stream containing the document.

|

Returns

TypeDescription
DocumentFormat

A DocumentFormat enumeration value specifying the document format.

|

See Also

IFormatDetectorService Interface

IFormatDetectorService Members

DevExpress.XtraRichEdit.Services Namespace