Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

HtmlDocumentExporterOptions.AnchorImagesToPage Property

Gets or sets a value indicating whether to place images on an HTML page at absolute positions relative to the page’s top-left corner.

Namespace: DevExpress.XtraSpreadsheet.Export

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll

Declaration

[DefaultValue(false)]
public bool AnchorImagesToPage { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to anchor images to a page; otherwise, false.

Remarks

The following table explains how the AnchorImagesToPage property works.

AnchorImagesToPage

Description

False (Default)

Images are anchored to the table cells and their position is defined by the offsets from the left and top cell edges:

<table>
    ...
    <tr>
        ...
        <td><img src="image.png" ... style="position:absolute;left:0px;top:0px;"/></td>
        ...
    </tr>
    ...
</table>

True

Images are written to HTML after the table and their position is defined by the offsets from the webpage’s left and top edges.

<table>
...
</table>
<img src="image.png" ... style="position:absolute;left:100px;top:100px;"/>
See Also