private void CreateColumnStyle(XmlNode styleNode)
{
ColumnStyle columnStyle = new ColumnStyle(this._document);
columnStyle.Node = styleNode.CloneNode(true);
IPropertyCollection pCollection = new IPropertyCollection();
if (styleNode.HasChildNodes)
{
foreach(XmlNode node in styleNode.ChildNodes)
{
IProperty property = this.GetProperty(columnStyle, node.CloneNode(true));
if (property != null)
pCollection.Add(property);
}
}
columnStyle.Node.InnerXml = "";
foreach(IProperty property in pCollection)
columnStyle.PropertyCollection.Add(property);
if (!this._common)
this._document.Styles.Add(columnStyle);
else
this._document.CommonStyles.Add(columnStyle);
}