public void Insert (int idx, HotSpot spot) { ((IList)this).Insert (idx, spot); }
public void Remove (HotSpot spot) { ((IList)this).Remove (spot); }
private static string GetHotSpotMarkupName(HotSpot spot) { if(spot is PolygonHotSpot) return "poly"; else if(spot is RectangleHotSpot) return "rect"; else if(spot is CircleHotSpot) return "circle"; else throw new NotSupportedException("Other hot spot types not supported"); }
public int Add (HotSpot spot) { return ((IList)this).Add (spot); }
public void Remove(HotSpot spot) { }
protected internal override void Render(HtmlTextWriter writer) { base.Render(writer); if (spots != null && spots.Count > 0) { #if NET_4_0 bool enabled = Enabled; #endif writer.AddAttribute(HtmlTextWriterAttribute.Id, "ImageMap" + ClientID); writer.AddAttribute(HtmlTextWriterAttribute.Name, "ImageMap" + ClientID); writer.RenderBeginTag(HtmlTextWriterTag.Map); for (int n = 0; n < spots.Count; n++) { HotSpot spot = spots [n]; writer.AddAttribute(HtmlTextWriterAttribute.Shape, spot.MarkupName); writer.AddAttribute(HtmlTextWriterAttribute.Coords, spot.GetCoordinates()); writer.AddAttribute(HtmlTextWriterAttribute.Title, spot.AlternateText); writer.AddAttribute(HtmlTextWriterAttribute.Alt, spot.AlternateText); if (spot.AccessKey.Length > 0) { writer.AddAttribute(HtmlTextWriterAttribute.Accesskey, spot.AccessKey); } if (spot.TabIndex != 0) { writer.AddAttribute(HtmlTextWriterAttribute.Tabindex, spot.TabIndex.ToString()); } HotSpotMode mode = spot.HotSpotMode != HotSpotMode.NotSet ? spot.HotSpotMode : HotSpotMode; switch (mode) { case HotSpotMode.Inactive: writer.AddAttribute("nohref", "true", false); break; case HotSpotMode.Navigate: string target = spot.Target.Length > 0 ? spot.Target : Target; if (!String.IsNullOrEmpty(target)) { writer.AddAttribute(HtmlTextWriterAttribute.Target, target); } #if NET_4_0 if (enabled) { #endif string navUrl = ResolveClientUrl(spot.NavigateUrl); writer.AddAttribute(HtmlTextWriterAttribute.Href, navUrl); #if NET_4_0 } #endif break; case HotSpotMode.PostBack: writer.AddAttribute(HtmlTextWriterAttribute.Href, Page.ClientScript.GetPostBackClientHyperlink(this, n.ToString(), true)); break; } writer.RenderBeginTag(HtmlTextWriterTag.Area); writer.RenderEndTag(); } writer.RenderEndTag(); } }
public int Add(HotSpot spot) { return default(int); }
public void Insert(int index, HotSpot spot) { }
public void Insert(int index, HotSpot spot) { ((IList)this).Insert(index, spot); }
public void Remove(HotSpot spot) { ((IList)this).Remove(spot); }
public int Add(HotSpot spot) { return(((IList)this).Add(spot)); }
protected override void SetDirtyObject(object o) { HotSpot spot = (HotSpot)o; spot.SetDirty(); }
public int Add(HotSpot spot) { return(default(int)); }