Ejemplo n.º 1
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);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if the MAP contains the AREA tag.
 /// </summary>
 /// <remarks>
 /// This method is used from withing the <see cref="GuruComponents.Netrix.WebEditing.Elements.AreaElement">AreaElement</see> class.
 /// <seealso cref="GuruComponents.Netrix.WebEditing.Elements.MapElement">MapElement</seealso>
 /// </remarks>
 /// <param name="o">The AREA object which should be checked.</param>
 /// <returns>Returns <c>true</c> if the element exists.</returns>
 public bool Contains(AreaElement o)
 {
     return(List.Contains(o));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Removes the AREA tag from the MAP.
 /// </summary>
 /// <remarks>
 /// This method is used from withing the <see cref="GuruComponents.Netrix.WebEditing.Elements.AreaElement">AreaElement</see> class.
 /// <seealso cref="GuruComponents.Netrix.WebEditing.Elements.MapElement">MapElement</seealso>
 /// </remarks>
 /// <param name="o">The AREA object which should be removed.</param>
 public void Remove(AreaElement o)
 {
     base.List.Remove(o);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Adds the given element to the collection.
 /// </summary>
 /// <remarks>
 /// To create an area element use the default constructor of the <see cref="GuruComponents.Netrix.WebEditing.Elements.AreaElement">AreaElement</see> class.
 /// This constructor creates the element and adds it to the document, but the element is still not part
 /// of the DOM. To make it usable it must be inserted into the AREA collection of an existing MAP element.
 /// <seealso cref="GuruComponents.Netrix.WebEditing.Elements.MapElement">MapElement</seealso>
 /// <seealso cref="GuruComponents.Netrix.WebEditing.Elements.AreaElement">AreaElement</seealso>
 /// </remarks>
 /// <param name="o">The element which should be added to the collection.</param>
 public void Add(AreaElement o)
 {
     base.List.Add(o);
 }