API Reference
HtmlComputedStyle
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) #HtmlCssCascadeTrace?Gets an owned cascade explanation, or null when the property's trace slice is not implemented.
Parameters
- propertyName System.String
public String GetValue(String propertyName) #StringGets a computed property value or an empty string when no value is known.
Parameters
- propertyName System.String
public Boolean TryGetCascadeTrace(String propertyName, out HtmlCssCascadeTrace? trace) #BooleanReturns an owned cascade explanation for a property in the implemented grammar slice.
Parameters
- propertyName System.String
- trace OfficeIMO.Html.Css.HtmlCssCascadeTrace?
public Boolean TryGetTypedValue(String propertyName, out HtmlCssPropertyValue? value) #BooleanReturns 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
- value OfficeIMO.Html.Css.HtmlCssPropertyValue?
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.