AODL.Document.Import.OpenDocument.NodeProcessors.MainContentProcessor.CreateDrawTextBox C# (CSharp) Метод

CreateDrawTextBox() приватный Метод

Creates the draw text box.
private CreateDrawTextBox ( XmlNode drawTextBoxNode ) : DrawTextBox
drawTextBoxNode System.Xml.XmlNode The draw text box node.
Результат AODL.Document.Content.Draw.DrawTextBox
		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);
			}
		}