officefileapi-devexpress-dot-spreadsheet-dot-rangeimageoptions-7ec254fb.md
Specifies whether to include drawing objects (charts, shapes, and pictures) in the output image.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
public bool ExportDrawingObjects { get; set; }
Public Property ExportDrawingObjects As Boolean
| Type | Description |
|---|---|
| Boolean |
true to export drawing objects; otherwise, false. The default value is true.
|
The following example demonstrates how to save a cell range as a black and white image and exclude drawing objects from the output:
var exportOptions = new RangeImageOptions
{
BlackAndWhite = true,
ExportDrawingObjects = false
};
worksheet.Range["B1:I25"].ExportToImage("RangeImage.png", ImageFileFormat.Png, exportOptions);
Dim exportOptions As New RangeImageOptions With {
.BlackAndWhite = True,
.ExportDrawingObjects = False
}
worksheet.Range("B1:I25").ExportToImage("RangeImage.png", ImageFileFormat.Png, exportOptions)
See Also