Example #1
0
 /// <summary>
 /// Gives the values of all the CSS properties of an element after
 /// applying the active stylesheets and resolving any basic computation
 /// those values may contain.
 /// </summary>
 /// <param name="element">The element to compute the style for.</param>
 /// <param name="pseudo">The optional pseudo selector to use.</param>
 /// <returns>The style declaration describing the element.</returns>
 public Css.ComputedStyle getComputedStyle(HtmlElement element, string pseudo)
 {
     if (element == null)
     {
         return(null);
     }
     return(element.getComputedStyle(pseudo));
 }
Example #2
0
 /// <summary>
 /// Gives the values of all the CSS properties of an element after
 /// applying the active stylesheets and resolving any basic computation
 /// those values may contain.
 /// </summary>
 /// <param name="element">The element to compute the style for.</param>
 /// <returns>The style declaration describing the element.</returns>
 public Css.ComputedStyle getComputedStyle(HtmlElement element)
 {
     if (element == null)
     {
         return(null);
     }
     return(element.getComputedStyle(null));
 }