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

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

private AddToCollection ( IContent content, ContentCollection coll ) : void
content IContent
coll ContentCollection
Результат void
		private void AddToCollection(IContent content, ContentCollection coll)
		{
			coll.Add(content);

			if (content is ODFControlRef)
			{
				ODFControlRef ctrlRef = content as ODFControlRef;
				if (this._document is TextDocument)
				{
					
					TextDocument td = this._document as TextDocument;
					ODFFormControl fc = td.FindControlById(ctrlRef.DrawControl);
					
					if (fc != null)
					{
						fc.ContentCollection = coll;
						fc.ControlRef = ctrlRef;
					}

				}
			}
		}
		/// <summary>