Click or drag to resize

ExcelResult Methods

The ExcelResult type exposes the following members.

Methods
 NameDescription
Public methodAddPicture Insert a picture at the current position of the current worksheet and move the current row below it. If a width in pixels is given, the picture is resized with its proportions kept.
Public methodAddWorksheet Add a Worksheet to the current Workbook
Public methodApplyStyle(IXLCell, String) Apply one of the standard Seal styles to a cell
Public methodApplyStyle(IXLRange, String) Apply one of the standard Seal styles to a range
Public methodApplyStyle(IXLStyle, String) Apply one of the standard Seal styles (value, title or total) to a style object. ClosedXML has no named styles, so the attributes are set directly on the cell or the range.
Public methodCleanWorkbook Clean the current Workbook
Public methodCloseHeadlessBrowser Close the headless browser if it has been opened
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetHtmlElementPicture Returns the picture (PNG) of an element of the HTML result of the report (e.g. a map or a gauge). The HTML result is only generated if a view requires it (refer to ReportExecution.checkHTMLPrintResult), null is returned otherwise.
Public methodStatic memberGetPageOrientation Returns the ClosedXML page orientation matching a name
Public methodStatic memberGetPaperSize Returns the ClosedXML paper size matching a name. The names of the EPPlus 'ePaperSize' enumeration stored in existing reports (e.g. 'A4', 'Letter') are mapped to their ClosedXML equivalent ('A4Paper', 'LetterPaper').
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetHtmlValue(IXLCell, String) Converts an HTML string to plain text and writes it into a cell. The cell WrapText / alignment / merge must be set by the caller.
Public methodSetHtmlValue(IXLRange, String) Converts an HTML string to plain text and writes it into the first cell of a range (e.g. a merged range). The range WrapText / alignment / merge must be set by the caller.
Public methodSetValue(ResultCell, Boolean, Boolean) Set a ResultCell value at the current row and column
Public methodSetValue(IXLCell, ResultCell, Boolean, Boolean) Set a ResultCell value in an Excel cell
Public methodSetValue(IXLRange, ResultCell, Boolean, Boolean) Set a ResultCell value in the first cell of a range (e.g. a merged range)
Public methodSetValue(Int32, Int32, ResultCell, Boolean, Boolean) Set a ResultCell value at a given row and column
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also