Beispiel #1
0
 private void _areaElements_OnInsertHandler(int index, object value)
 {
     Interop.IHTMLElement         area    = ((AreaElement)value).GetBaseElement();
     Interop.IHTMLMapElement      mapNode = (Interop.IHTMLMapElement)base.GetBaseElement();
     Interop.IHTMLAreasCollection areas   = mapNode.areas;
     areas.add(area, 0);
 }
Beispiel #2
0
 private void _areaElements_OnClearHandler()
 {
     Interop.IHTMLMapElement      mapNode = (Interop.IHTMLMapElement)base.GetBaseElement();
     Interop.IHTMLAreasCollection areas   = mapNode.areas;
     while (areas.length > 0)
     {
         areas.remove(0);
     }
 }
Beispiel #3
0
 private void FillAreaCollection()
 {
     Interop.IHTMLMapElement      mapNode = (Interop.IHTMLMapElement)base.GetBaseElement();
     Interop.IHTMLAreasCollection areas   = mapNode.areas;
     if (areas.length > 0)
     {
         _areaElements.Clear();
         for (int i = 0; i < areas.length; i++)
         {
             Interop.IHTMLElement area = (Interop.IHTMLElement)areas.item(i, i);
             AreaElement          o    = HtmlEditor.GenericElementFactory.CreateElement(area) as AreaElement;
             _areaElements.Add(o);
         }
     }
 }