Show / Hide Table of Contents

Class HtmlPictureSettings

Setting for rendering of picture drawings

Inheritance
System.Object
HtmlPictureSettings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Export.HtmlExport
Assembly: EPPlus.dll
Syntax
public class HtmlPictureSettings

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.

Declaration
public bool AddMarginLeft { get; set; }
Property Value
Type Description
System.Boolean

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.

Declaration
public bool AddMarginTop { get; set; }
Property Value
Type Description
System.Boolean

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 (-).

Declaration
public bool AddNameAsId { get; set; }
Property Value
Type Description
System.Boolean

CssExclude

Exclude settings

Declaration
public PictureCssExclude CssExclude { get; }
Property Value
Type Description
PictureCssExclude

Include

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

Declaration
public ePictureInclude Include { get; set; }
Property Value
Type Description
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.

Declaration
public bool KeepOriginalSize { get; set; }
Property Value
Type Description
System.Boolean

Position

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

Declaration
public ePicturePosition Position { get; set; }
Property Value
Type Description
ePicturePosition

Methods

Copy(HtmlPictureSettings)

Copy the values from another settings object.

Declaration
public void Copy(HtmlPictureSettings copy)
Parameters
Type Name Description
HtmlPictureSettings copy

The object to copy.

ResetToDefault()

Reset the setting to it's default values.

Declaration
public void ResetToDefault()
In This Article
Back to top Generated by DocFX