private DrawTextBox CreateDrawTextBox(XmlNode drawTextBoxNode)
{
try
{
DrawTextBox drawTextBox = new DrawTextBox(this._document, drawTextBoxNode);
ContentCollection iColl = new ContentCollection();
foreach(XmlNode nodeChild in drawTextBox.Node.ChildNodes)
{
IContent iContent = this.CreateContent(nodeChild);
if (iContent != null)
//iColl.Add(iContent);
AddToCollection(iContent, iColl);
else
{
this.OnWarning(new AODLWarning("Couldn't create a IContent object for a DrawTextBox.", nodeChild));
}
}
drawTextBox.Node.InnerXml = "";
foreach(IContent iContent in iColl)
AddToCollection(iContent, drawTextBox.Content);
//drawTextBox.Content.Add(iContent);
return drawTextBox;
}
catch(Exception ex)
{
throw new AODLException("Exception while trying to create a Graphic.", ex);
}
}