HtmlForgeX

API Reference

Class

LayoutContext

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers sealed

Provides layout information for elements during rendering.

Inheritance

  • Object
  • LayoutContext

Constructors

public LayoutContext() #

Properties

public Int32 Index { get; set; } #

Index of the element within its parent collection.

public Boolean IsFirst { get; set; } #

Indicates whether the element is the first in its parent.

public Boolean IsLast { get; set; } #

Indicates whether the element is the last in its parent.

public Element Previous { get; set; } #

Previous sibling element if any.

public Element Next { get; set; } #

Next sibling element if any.

public Element Parent { get; set; } #

Parent element containing the current element.

public EmailConfiguration Config { get; set; } #

Reference to the email configuration.

public SpacingMode SpacingMode { get; set; } #

Selected spacing mode.

public RoundingMode RoundingMode { get; set; } #

Selected rounding mode.

public EmailColumn PreviousColumn { get; set; } #

Previous sibling column when the parent is an EmailRow.

public EmailColumn NextColumn { get; set; } #

Next sibling column when the parent is an EmailRow.

public Int32 ColumnIndex { get; set; } #

Index of this element among its sibling columns.

public Int32 ColumnCount { get; set; } #

Total number of sibling columns in the parent row.