public string GetDrawFrameAsHtml(Frame frame)
{
string html = "<p>\n";
try
{
if (frame != null)
{
if (frame.Content != null)
{
//Check for possible Image Map
bool containsImageMap = false;
foreach(IContent iContent in frame.Content)
if (iContent is ImageMap)
{
this._nextImageMapName = Guid.NewGuid().ToString();
containsImageMap = true;
break;
}
if (!containsImageMap)
this._nextImageMapName = null;
html += this.GetIContentCollectionAsHtml(frame.Content);
}
}
}
catch(Exception ex)
{
throw new AODLException("Exception while trying to build a HTML string from a Frame object.", ex);
}
if (!html.Equals("<p>\n"))
html += "</p>\n";
else
html = "";
return html;
}