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