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

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

Creates the cell style.
private CreateCellStyle ( XmlNode styleNode ) : void
styleNode System.Xml.XmlNode The style node.
Результат void
		private void CreateCellStyle(XmlNode styleNode)
		{
			CellStyle cellStyle					= new CellStyle(this._document);
			cellStyle.Node						= styleNode.CloneNode(true);
			IPropertyCollection pCollection		= new IPropertyCollection();

			if (styleNode.HasChildNodes)
			{
				foreach(XmlNode node in styleNode.ChildNodes)
				{
					IProperty property			= this.GetProperty(cellStyle, node.CloneNode(true));
					if (property != null)
						pCollection.Add(property);
				}
			}

			cellStyle.Node.InnerXml				= "";

			foreach(IProperty property in pCollection)
				cellStyle.PropertyCollection.Add(property);

			if (!this._common)
				this._document.Styles.Add(cellStyle);
			else
				this._document.CommonStyles.Add(cellStyle);
		}