RtfCompressedToRtfCompressionMode Property

Get the compression mode.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public RtfCompressionMode CompressionMode { get; }

Property Value

RtfCompressionMode
The compression mode.

Remarks

At least 12 bytes from the stream must be processed before this property value will be accurate. Until then, and after a call to Reset, the compression mode is Unknown.

Once the header has been processed, this property holds the raw value of the COMPTYPE field. [MS-OXRTFCP] only defines Compressed and Uncompressed; any other value means that the stream is malformed, and the filter discards its content and produces no output.

See Also