Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#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