Skip to main content
A newer version of this page is available. .
All docs
V21.1
.NET Framework 4.5.2+
Row

RangeImageOptions.ExportDrawingObjects Property

Specifies whether to include drawing objects (charts, shapes, and pictures) in the output image.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

public bool ExportDrawingObjects { get; set; }

Property Value

Type Description
Boolean

true to export drawing objects; otherwise, false. The default value is true.

Remarks

The following example demonstrates how to save a cell range as a black and white image and exclude drawing objects from the output:

Spreadsheet - Export a Cell Range to a Black and White Image

var exportOptions = new RangeImageOptions
{
    BlackAndWhite = true,
    ExportDrawingObjects = false
};
worksheet.Range["B1:I25"].ExportToImage("RangeImage.png", ImageFileFormat.Png, exportOptions);
See Also