IViewCSS Interface

The IViewCSS interface represents an extension to the Window object that give an access to the values of all CSS properties of an element.

The CSS Style for a given element can be obtained using the IViewCSS.GetComputedStyle() method.

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.11
Syntax
public interface IViewCSS : IAbstractView

The IViewCSS type exposes the following members.

Properties
  NameDescription
Public propertyDocument
The source DocumentView of which this is an AbstractView.
(Inherited from IAbstractView.)
Methods
  NameDescription
Public methodGetComputedStyle(Element)

The IViewCSS.getComputedStyle() method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.

Individual CSS property values are accessed through APIs provided by the object, or by indexing with CSS property names.

Public methodGetComputedStyle(Element, String)

The IViewCSS.getComputedStyle() method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.

Individual CSS property values are accessed through APIs provided by the object, or by indexing with CSS property names.

Remarks

CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and of course CSS itself.

Reference

  • CSS Working Group - The CSS Working Group is the W3C working group chartered to develop Cascading Style Sheets (CSS).
  • CSS Object Model (CSSOM) - CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and of course CSS itself.
See Also