Esempio n. 1
0
        /// <summary>Convenience method for checking if the specified element is absolutely positioned.</summary>
        /// <param name="elem"></param>
        /// <returns></returns>
        private bool IsElement2DPositioned(NativeMethods.IHTMLElement element)
        {
            NativeMethods.IHTMLElement2     elem2 = (NativeMethods.IHTMLElement2)element;
            NativeMethods.IHTMLCurrentStyle style = elem2.GetCurrentStyle();
            string position = style.GetPosition();

            return((position != null) && (position.ToLower() == "absolute"));
        }