HtmlComputedStyle
OfficeIMO.Html
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.
Returned or exposed by 4
- Method HtmlComputedStyleEngine.Compute
- Property HtmlSemanticBlock.Style
- Property HtmlSemanticRun.Style
- Property HtmlSemanticTableCell.Style
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
Returns
HtmlCssCascadeTrace?public string GetValue(string propertyName) #Gets a computed property value or an empty string when no value is known.
Parameters
- propertyName string
Returns
stringpublic bool TryGetCascadeTrace(string propertyName, out HtmlCssCascadeTrace? trace) #Returns an owned cascade explanation for a property in the implemented grammar slice.
Parameters
- propertyName string
- trace OfficeIMO.Html.Css.HtmlCssCascadeTrace?
Returns
boolpublic 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
- value OfficeIMO.Html.Css.HtmlCssPropertyValue?
Returns
boolInherited Methods
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.