Click or drag to resize
ExcelDrawingFormat Method (Double, Double, LengthUnit)
Formats this drawing (picture, chart, etc.) to specified size so it can be exported to PDF, XPS, image or be printed.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public FormattedExcelDrawing Format(
	double width,
	double height,
	LengthUnit unit
)

Parameters

width
Type: SystemDouble
The formatted drawing width.
height
Type: SystemDouble
The formatted drawing height.
unit
Type: GemBox.SpreadsheetLengthUnit
The formatted drawing width / height length unit.

Return Value

Type: FormattedExcelDrawing
Formatted drawing (picture, chart, etc.) which can be exported to PDF, XPS, image or be printed.
Exceptions
ExceptionCondition
SpreadsheetExceptionDrawing cannot be formatted because it doesn't belong to any worksheet.
See Also