Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlComputedStyle

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Computed-style snapshot for one HTML element.

Inheritance

  • object
  • HtmlComputedStyle

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public HtmlCssCascadeTrace? GetCascadeTrace(string propertyName) #

Gets an owned cascade explanation, or null when the property's trace slice is not implemented.

Parameters

propertyName string required

Returns

HtmlCssCascadeTrace?
public string GetValue(string propertyName) #

Gets a computed property value or an empty string when no value is known.

Parameters

propertyName string required

Returns

string
public bool TryGetCascadeTrace(string propertyName, out HtmlCssCascadeTrace? trace) #

Returns an owned cascade explanation for a property in the implemented grammar slice.

Parameters

propertyName string required
trace OfficeIMO.Html.Css.HtmlCssCascadeTrace? required

Returns

bool
public bool TryGetTypedValue(string propertyName, out HtmlCssPropertyValue? value) #

Returns the provider-independent typed value for a computed property when its current OfficeIMO grammar slice accepts the value. Layout-dependent percentages remain in the returned expression until a caller supplies a used-value resolution context.

Parameters

propertyName string required
value OfficeIMO.Html.Css.HtmlCssPropertyValue? required

Returns

bool

Properties

public IReadOnlyDictionary<string, string> Properties { get; } #

All computed properties known to the lightweight style engine.

public double? ResolvedFontSizePoints { get; internal set; } #

Gets the resolved effective font size in points after relative units, percentages, and CSS font-size keywords have been evaluated against their inherited context.