Table of Contents

Class ComputedStyle

Namespace
SimpleSign.HtmlToPdf.Parsing
Assembly
SimpleSign.HtmlToPdf.dll

Computed style properties for an HTML node after CSS cascade resolution. All values are resolved to concrete types (no "inherit" or "auto" strings). Lengths are in points (1pt = 1/72 inch).

public sealed class ComputedStyle
Inheritance
ComputedStyle
Inherited Members

Properties

BackgroundColor

Gets or sets the background color. Null means transparent.

public PdfColor? BackgroundColor { get; set; }

Property Value

PdfColor?

Border

Gets or sets the border style.

public BorderStyle Border { get; set; }

Property Value

BorderStyle

BorderCollapse

Gets or sets a value indicating whether table borders should collapse.

public bool BorderCollapse { get; set; }

Property Value

bool

Color

Gets or sets the text color.

public PdfColor Color { get; set; }

Property Value

PdfColor

Display

Gets or sets the display type.

public DisplayType Display { get; set; }

Property Value

DisplayType

FontFamily

Gets or sets the font family name.

public string FontFamily { get; set; }

Property Value

string

FontPosition

Gets or sets the vertical font position (normal, subscript, superscript).

public FontPosition FontPosition { get; set; }

Property Value

FontPosition

FontSize

Gets or sets the font size in points.

public float FontSize { get; set; }

Property Value

float

Height

Gets or sets the explicit height in points. Null means auto.

public float? Height { get; set; }

Property Value

float?

IsBold

Gets or sets a value indicating whether text is bold.

public bool IsBold { get; set; }

Property Value

bool

IsItalic

Gets or sets a value indicating whether text is italic.

public bool IsItalic { get; set; }

Property Value

bool

IsStrikethrough

Gets or sets a value indicating whether text has a strikethrough.

public bool IsStrikethrough { get; set; }

Property Value

bool

IsUnderline

Gets or sets a value indicating whether text is underlined.

public bool IsUnderline { get; set; }

Property Value

bool

LineHeight

Gets or sets the line height as a multiplier of font size.

public float LineHeight { get; set; }

Property Value

float

Margin

Gets or sets the margin thickness.

public Thickness Margin { get; set; }

Property Value

Thickness

MaxWidth

Gets or sets the maximum width in points.

public float? MaxWidth { get; set; }

Property Value

float?

Padding

Gets or sets the padding thickness.

public Thickness Padding { get; set; }

Property Value

Thickness

PageBreakAfter

Gets or sets the page-break-after behavior.

public PageBreak PageBreakAfter { get; set; }

Property Value

PageBreak

PageBreakBefore

Gets or sets the page-break-before behavior.

public PageBreak PageBreakBefore { get; set; }

Property Value

PageBreak

TextAlign

Gets or sets the text alignment.

public TextAlign TextAlign { get; set; }

Property Value

TextAlign

TextIndent

Gets or sets the text indent in points.

public float TextIndent { get; set; }

Property Value

float

VerticalAlign

Gets or sets the vertical alignment for table cells.

public VerticalAlign VerticalAlign { get; set; }

Property Value

VerticalAlign

Width

Gets or sets the explicit width in points. Null means auto.

public float? Width { get; set; }

Property Value

float?

Methods

Clone()

Creates a deep copy for inheritance.

public ComputedStyle Clone()

Returns

ComputedStyle

A cloned instance of this style.