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: 43.0.35.1005
Syntaxpublic FormattedExcelDrawing Format(
double width,
double height,
LengthUnit unit
)
Public Function Format (
width As Double,
height As Double,
unit As LengthUnit
) As FormattedExcelDrawing
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:
FormattedExcelDrawingFormatted drawing (picture, chart, etc.) which can be exported to PDF, XPS, image or be printed.
ExceptionsException | Condition |
---|
SpreadsheetException | Drawing cannot be formatted because it doesn't belong to any worksheet. |
See Also