Class RenderedElementLocation
Inheritance
System.Object
RenderedElementLocation
Assembly: IronPdf.dll
Syntax
public class RenderedElementLocation : Object
PDF generation in IronPDF is handled through RenderedElementLocation. It represents the rendered location of an HTML element within a PDF document.
RenderedElementLocation matters when an application needs to configure or invoke PDF generation from C# code. The class encapsulates the related options and behavior in a single object that is set up once and reused across render or processing calls. Typical scenarios include batch generation pipelines, templated document workflows, and integration with existing C# document services.
To use RenderedElementLocation, instantiate or obtain it from the relevant entry point in the IronPDF C# API. Key properties include ElementIndex, PageIndex, Rectangle, Text. Assign options or invoke methods on the instance to configure or perform the operation. The HTML element to PDF covers typical usage in C# end to end.
using IronPdf;
var instance = new RenderedElementLocation();
var current = instance.ElementIndex;
// Read or assign other properties such as PageIndex, Rectangle
instance.Equals();
For the broader workflow, see the ironpdf 2021 chrome rendering engine eap guide in the IronPDF C# documentation. For broader context, the PDF generation portion of the IronPDF C# API contains related types that work with RenderedElementLocation directly. RenderedElementLocation exposes additional members beyond those highlighted above; the reference tables on this page list the full set. In application code, treat RenderedElementLocation as a configured object that is constructed once and reused across operations rather than instantiated per call. Configuration is generally idempotent: assigning the same property value twice has the same effect as assigning it once. For diagnostic purposes, inspect the relevant RenderedElementLocation property after each operation to confirm the configured state. See the constructors, properties, and methods tables below for the complete API surface of RenderedElementLocation.
Constructors
RenderedElementLocation()
Declaration
public RenderedElementLocation()
Properties
ElementIndex
The original index of the element in document order among all matched elements.
Declaration
public int ElementIndex { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
PageIndex
The zero-based page index where the element was rendered.
Declaration
public int PageIndex { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Rectangle
The bounding rectangle of the annotation marker on the page, in PDF points (1/72 inch).
Coordinates origin is the bottom-left corner of the page.
Note: This rectangle corresponds to the injected anchor marker's position,
which is placed at the start of the matched element.
Declaration
public Rectangle Rectangle { get; }
Property Value
| Type |
Description |
| IronSoftware.Drawing.Rectangle |
|
Text
The text content of the matched element.
Declaration
public string Text { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
Equals(RenderedElementLocation)
Declaration
public bool Equals(RenderedElementLocation other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Operators
Equality(RenderedElementLocation, RenderedElementLocation)
Declaration
public static bool operator ==(RenderedElementLocation left, RenderedElementLocation right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(RenderedElementLocation, RenderedElementLocation)
Declaration
public static bool operator !=(RenderedElementLocation left, RenderedElementLocation right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.IEquatable<>