Table of Contents

Class HtmlPictureSettings

Namespace
OfficeOpenXml.Export.HtmlExport
Assembly
EPPlus.dll

Setting for rendering of picture drawings

public class HtmlPictureSettings
Inheritance
HtmlPictureSettings
Inherited Members

Properties

AddMarginLeft

If the margin in pixels from the left corner should be used. If this property is set to true, the cells text alignment will be set to 'left', otherwise alignment will be set to center.

public bool AddMarginLeft { get; set; }

Property Value

bool

AddMarginTop

If the margin in pixels from the top corner should be used. If this property is set to true, the cells vertical alignment will be set to 'top', otherwise alignment will be set to middle.

public bool AddMarginTop { get; set; }

Property Value

bool

AddNameAsId

Adds the Picture name as Id for the img element in the HTML. Characters [A-Z][0-9]-_ are allowed. The first character allows [A-Z]_. Other characters will be replaced with an hyphen (-).

public bool AddNameAsId { get; set; }

Property Value

bool

CssExclude

Exclude settings

public PictureCssExclude CssExclude { get; }

Property Value

PictureCssExclude

Include

If picture drawings should be included in the html. Default is Exclude

public ePictureInclude Include { get; set; }

Property Value

ePictureInclude

KeepOriginalSize

If set to true the original size of the image is used, otherwise the size in the workbook is used. Default is false.

public bool KeepOriginalSize { get; set; }

Property Value

bool

Position

If the image should be added as absolut or relative in the css.

public ePicturePosition Position { get; set; }

Property Value

ePicturePosition

Methods

Copy(HtmlPictureSettings)

Copy the values from another settings object.

public void Copy(HtmlPictureSettings copy)

Parameters

copy HtmlPictureSettings

The object to copy.

ResetToDefault()

Reset the setting to it's default values.

public void ResetToDefault()