GetStylesForElement() protected méthode

Used to find matching style rules in the cascading order
protected GetStylesForElement ( XmlElement elt, string pseudoElt, MediaList ml, CssCollectedStyleDeclaration csd ) : void
elt System.Xml.XmlElement The element to find styles for
pseudoElt string The pseudo-element to find styles for
ml SharpVectors.Dom.Stylesheets.MediaList The medialist that the document is using
csd CssCollectedStyleDeclaration A CssStyleDeclaration that holds the collected styles
Résultat void
        /// <summary>
        /// Used to find matching style rules in the cascading order
        /// </summary>
        /// <param name="elt">The element to find styles for</param>
        /// <param name="pseudoElt">The pseudo-element to find styles for</param>
        /// <param name="ml">The medialist that the document is using</param>
        /// <param name="csd">A CssStyleDeclaration that holds the collected styles</param>
        internal void GetStylesForElement(XmlElement elt, string pseudoElt, MediaList ml, CssCollectedStyleDeclaration csd)
        {
            ulong len = Length;

            for (ulong i = 0; i < len; i++)
            {
                CssRule csr = (CssRule)this[i];
                csr.GetStylesForElement(elt, pseudoElt, ml, csd);
            }
        }