Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlComputedStyle

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision 804a7612eee4 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) #
Returns: HtmlCssCascadeTrace?

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

Parameters

propertyName System.String requiredposition: 0
public String GetValue(String propertyName) #
Returns: String

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

Parameters

propertyName System.String requiredposition: 0
public Boolean TryGetCascadeTrace(String propertyName, out HtmlCssCascadeTrace? trace) #
Returns: Boolean

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

Parameters

propertyName System.String requiredposition: 0
trace OfficeIMO.Html.Css.HtmlCssCascadeTrace? requiredposition: 1
public Boolean TryGetTypedValue(String propertyName, out HtmlCssPropertyValue? value) #
Returns: Boolean

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 System.String requiredposition: 0
value OfficeIMO.Html.Css.HtmlCssPropertyValue? requiredposition: 1

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.