internal string GetTag() { StringBuilder stringBuilder = new StringBuilder("\r\n<AREA SHAPE=\"", 120); if (shape == MapAreaShape.Circle) { stringBuilder.Append("circle\""); } else if (shape == MapAreaShape.Rectangle) { stringBuilder.Append("rect\""); } else if (shape == MapAreaShape.Polygon) { stringBuilder.Append("poly\""); } if (Href.Length > 0) { stringBuilder.Append(" HREF=\""); if (Href.ToUpper(CultureInfo.InvariantCulture).StartsWith("WWW.", StringComparison.Ordinal)) { stringBuilder.Append("http://"); } stringBuilder.Append(Href); stringBuilder.Append("\""); } if (ToolTip.Length > 0) { stringBuilder.Append(" Title=\""); stringBuilder.Append(ToolTip); stringBuilder.Append("\""); } stringBuilder.Append(" COORDS=\""); bool flag = true; int[] array = Coordinates; foreach (int value in array) { if (!flag) { stringBuilder.Append(","); } flag = false; stringBuilder.Append(value); } stringBuilder.Append("\""); if (MapAreaAttributes.Length > 0) { stringBuilder.Append(" "); stringBuilder.Append(MapAreaAttributes); } stringBuilder.Append(">"); return(stringBuilder.ToString()); }