Exemple #1
0
 /// <summary>
 /// Convenience method for checking if the specified element has a design time lock
 /// </summary>
 /// <param name="elem"></param>
 /// <returns></returns>
 private bool IsElementLocked(Interop.IHTMLElement elem)
 {
     object[] attribute = new object[1];
     elem.GetAttribute(DesignTimeLockAttribute,0,attribute);
     if (attribute[0] == null)
     {
         Interop.IHTMLStyle style = elem.GetStyle();
         attribute[0] = style.GetAttribute(DesignTimeLockAttribute,0);
     }
     if ((attribute[0] == null) || !(attribute[0] is string))
     {
         return false;
     }
     return true;
 }