Back to Devexpress

RangeImageOptions.ExportDrawingObjects Property

officefileapi-devexpress-dot-spreadsheet-dot-rangeimageoptions-7ec254fb.md

latest2.0 KB
Original Source

RangeImageOptions.ExportDrawingObjects Property

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

Declaration

csharp
public bool ExportDrawingObjects { get; set; }
vb
Public Property ExportDrawingObjects As Boolean

Property Value

TypeDescription
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:

csharp
var exportOptions = new RangeImageOptions
{
    BlackAndWhite = true,
    ExportDrawingObjects = false
};
worksheet.Range["B1:I25"].ExportToImage("RangeImage.png", ImageFileFormat.Png, exportOptions);
vb
Dim exportOptions As New RangeImageOptions With {
      .BlackAndWhite = True,
      .ExportDrawingObjects = False
}
worksheet.Range("B1:I25").ExportToImage("RangeImage.png", ImageFileFormat.Png, exportOptions)

See Also

RangeImageOptions Class

RangeImageOptions Members

DevExpress.Spreadsheet Namespace