Class HtmlExportSettings¶
Namespace: OfficeOpenXml.Export.HtmlExport
Assembly: EPPlus.dll
Base class for HTML export for ranges and tables.
Inheritance¶
Derived¶
HtmlRangeExportSettings
HtmlTableExportSettings
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
HtmlExportSettings()¶
Properties¶
Accessibility¶
Settings for usage of accessibility (aria, role) attributes of the table
Property Value¶
AdditionalTableClassNames¶
Use this property to set additional class names that will be set on the exported html-table.
Property Value¶
CellStyleClassName¶
The name of the classes used for cell styles. The name will be prefixed with the StyleClassPrefix and suffixed with the cell style index.
Property Value¶
Culture¶
The culture used when formatting the cell output.
Property Value¶
DataValueAttributeName¶
Use this property to set the name of the html data-* attribute that contains the raw value. Default value is "value" which means that the name of the attribute is "data-value". To change the name to "data-x", set this property to "x"
Property Value¶
DxfStyleClassName¶
The name of the classes used for cell styles. The name will be prefixed with the StyleClassPrefix and suffixed with the cell style index.
Property Value¶
Encoding¶
Encoding for the output
Property Value¶
HiddenRows¶
How hidden rows will be handled. Default is Exclude
Property Value¶
HorizontalAlignmentWhenGeneral¶
How to set the alignment for a cell if it's alignment is set to General.
Property Value¶
HyperlinkTarget¶
Set the target attribute for hyperlinks (a elements) in the exported html. Can be null/empty (no target attribute), _blank, _top, _self, _parent or a frame-name.
Property Value¶
IncludeCssClassNames¶
If set to true classes that identifies Excel table styling will be included in the html. Default value is true.
Property Value¶
Minify¶
If set to true the rendered html will be formatted with indents and linebreaks.
Property Value¶
Pictures¶
If picture drawings will be included. Default is true.
Property Value¶
RenderConditionalFormattings¶
If true conditionalFormattings will be rendered
Property Value¶
RenderDataAttributes¶
If true data-* attributes will be rendered
Property Value¶
RenderDataTypes¶
If true, data types are renedered on the header objects.
Property Value¶
SetColumnWidth¶
Set the column width for columns in the table via the columngroup/col element. Columns with the default width will have the default column width class set, ({Settings.StyleClassPrefix}dcw). Columns with custom column width will have the width set directly via the style attribute.
Property Value¶
SetRowHeight¶
Set the row height for rows in the table. Rows with the default height will have the default row height class set, ({Settings.StyleClassPrefix}drh). Rows with custom row height will have the height set directly via the style attribute.
Property Value¶
StyleClassPrefix¶
Prefix for style classes added by EPPlus.
| type | Class name |
|---|---|
| Cell styles | {StyleClassPrefix}{CellStyleClassName}{index} |
| Hidden Row{StyleClassPrefix}hidden | |
| Alignment Left | {StyleClassPrefix}al |
| Alignment Right | {StyleClassPrefix}ar |
| Default column width | {StyleClassPrefix}dcw |
| Default row height | {StyleClassPrefix}drh |
| Image content and position | {StyleClassPrefix}image-{imageName} |
| Properties for an image, for example position or border settings | {StyleClassPrefix}image-prop-{imageName} |
| Alignment for cells containing an image | {StyleClassPrefix}image-cell} |
Property Value¶
TableId¶
The html id attribute for the exported table. The id attribute is only added to the table if this property is not null or empty.
Property Value¶
TableStyle¶
If and how table styles should export, if the range is a table. The range must be the same as the table range.