Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

DocumentExportCapabilities.Contains(DocumentExportCapabilities) Method

Determines whether the current capabilities are a superset of the specified capabilities.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public bool Contains(
    DocumentExportCapabilities value
)

Parameters

Name Type Description
value DocumentExportCapabilities

A DocumentExportCapabilities object to test.

Returns

Type Description
Boolean

true if the current capabilities contain the specified capabilities; otherwise, false.

Remarks

The following code snippet illustrates how you can detect if the capabilities of your custom exporter match the formatting capabilities required to export the current document. First, declare the exporter capabilities in the DocumentExportCapabilities structure, and then compare it with the structure obtained via the Document.RequiredExportCapabilities property.

DevExpress.XtraRichEdit.DocumentExportCapabilities myExportFeatures = 
    new DevExpress.XtraRichEdit.DocumentExportCapabilities();
myExportFeatures.CharacterFormatting = true;
myExportFeatures.ParagraphFormatting = true;
myExportFeatures.InlinePictures= true;

if(myExportFeatures.Contains(richEditControl1.Document.RequiredExportCapabilities))
    MessageBox.Show("The document can be exported");
See Also