• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class RangeImageSaveOptions

Options that control how a worksheet or cell range is exported to a raster image. Used by WorksheetImageExporter.ExportRangeToImage and WorksheetImageExporter.ExportToImage.

Inheritance
object
RangeImageSaveOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Spreadsheet.Export.Image
Assembly: DRIT.Spreadsheet.dll
Syntax
public sealed class RangeImageSaveOptions

Constructors

RangeImageSaveOptions()

Options that control how a worksheet or cell range is exported to a raster image. Used by WorksheetImageExporter.ExportRangeToImage and WorksheetImageExporter.ExportToImage.

Declaration
public RangeImageSaveOptions()

Properties

Dpi

Output resolution in dots per inch. Default: 150.

Declaration
public float Dpi { get; set; }
Property Value
Type Description
float

EmfCanvasHeightPt

Optional standalone EMF chart height in points from Excel's ChartObject.Height.

Declaration
public double? EmfCanvasHeightPt { get; set; }
Property Value
Type Description
double?

EmfCanvasWidthPt

Optional standalone EMF chart width in points, sourced from Excel's ChartObject.Width. Both point dimensions must be specified together. When omitted, the chart model size is used.

Declaration
public double? EmfCanvasWidthPt { get; set; }
Property Value
Type Description
double?

FallbackFontName

Font name used when the cell's font cannot be located.

Declaration
public string FallbackFontName { get; set; }
Property Value
Type Description
string

FallbackFontSizePt

Point size paired with FallbackFontName.

Declaration
public double FallbackFontSizePt { get; set; }
Property Value
Type Description
double

FontDirectories

Additional directories searched for TrueType / OpenType font files.

Declaration
public IList<string> FontDirectories { get; set; }
Property Value
Type Description
IList<string>

ForceGridLines

When true a hairline grey grid line is drawn around every visible cell, overriding the per-sheet PrintGridlines setting.

Declaration
public bool ForceGridLines { get; set; }
Property Value
Type Description
bool

Format

Output image format. Default: PNG.

Declaration
public ImageExportFormat Format { get; set; }
Property Value
Type Description
ImageExportFormat

IncludeRowColumnHeaders

When true column-letter and row-number header bands are rendered around the exported range.

Declaration
public bool IncludeRowColumnHeaders { get; set; }
Property Value
Type Description
bool

UseClassicEmfOutput

When true, EMF exports contain only classic EMF records, improving compatibility with applications such as Paint. When false, Excel-compatible EMF+ dual output is used. Default: false.

Declaration
public bool UseClassicEmfOutput { get; set; }
Property Value
Type Description
bool

UseStandaloneChartCanvas

When true, an EMF range export containing exactly one anchored chart renders that chart on its own canvas instead of including the surrounding worksheet range.

Declaration
public bool UseStandaloneChartCanvas { get; set; }
Property Value
Type Description
bool
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX