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
Border
Gets or sets the border style.
public BorderStyle Border { get; set; }
Property Value
BorderCollapse
Gets or sets a value indicating whether table borders should collapse.
public bool BorderCollapse { get; set; }
Property Value
Color
Gets or sets the text color.
public PdfColor Color { get; set; }
Property Value
Display
Gets or sets the display type.
public DisplayType Display { get; set; }
Property Value
FontFamily
Gets or sets the font family name.
public string FontFamily { get; set; }
Property Value
FontPosition
Gets or sets the vertical font position (normal, subscript, superscript).
public FontPosition FontPosition { get; set; }
Property Value
FontSize
Gets or sets the font size in points.
public float FontSize { get; set; }
Property Value
Height
Gets or sets the explicit height in points. Null means auto.
public float? Height { get; set; }
Property Value
IsBold
Gets or sets a value indicating whether text is bold.
public bool IsBold { get; set; }
Property Value
IsItalic
Gets or sets a value indicating whether text is italic.
public bool IsItalic { get; set; }
Property Value
IsStrikethrough
Gets or sets a value indicating whether text has a strikethrough.
public bool IsStrikethrough { get; set; }
Property Value
IsUnderline
Gets or sets a value indicating whether text is underlined.
public bool IsUnderline { get; set; }
Property Value
LineHeight
Gets or sets the line height as a multiplier of font size.
public float LineHeight { get; set; }
Property Value
Margin
Gets or sets the margin thickness.
public Thickness Margin { get; set; }
Property Value
MaxWidth
Gets or sets the maximum width in points.
public float? MaxWidth { get; set; }
Property Value
Padding
Gets or sets the padding thickness.
public Thickness Padding { get; set; }
Property Value
PageBreakAfter
Gets or sets the page-break-after behavior.
public PageBreak PageBreakAfter { get; set; }
Property Value
PageBreakBefore
Gets or sets the page-break-before behavior.
public PageBreak PageBreakBefore { get; set; }
Property Value
TextAlign
Gets or sets the text alignment.
public TextAlign TextAlign { get; set; }
Property Value
TextIndent
Gets or sets the text indent in points.
public float TextIndent { get; set; }
Property Value
VerticalAlign
Gets or sets the vertical alignment for table cells.
public VerticalAlign VerticalAlign { get; set; }
Property Value
Width
Gets or sets the explicit width in points. Null means auto.
public float? Width { get; set; }
Property Value
Methods
Clone()
Creates a deep copy for inheritance.
public ComputedStyle Clone()
Returns
- ComputedStyle
A cloned instance of this style.