/// <summary> /// Initializes a new instance of the <see cref="SectionStyle"/> class. /// </summary> /// <param name="document">The document.</param> /// <param name="node">The node.</param> public SectionStyle(IDocument document, XmlNode node) { this.Document = document; this.Node = node; this.InitStandards(); this.SectionProperties = new SectionProperties(this); }
/// <summary> /// Creates the section properties. /// </summary> /// <param name="style">The style.</param> /// <param name="propertyNode">The property node.</param> /// <returns></returns> private SectionProperties CreateSectionProperties(IStyle style, XmlNode propertyNode) { SectionProperties sectionProperties = new SectionProperties(style); sectionProperties.Node = propertyNode; return sectionProperties; }
/// <summary> /// Initializes a new instance of the <see cref="SectionStyle"/> class. /// </summary> /// <param name="content">The content.</param> /// <param name="styleName">Name of the style.</param> public SectionStyle(IContent content, string styleName) { this.Content = content; this.Document = content.Document; this.NewXmlNode(styleName); this.InitStandards(); this.SectionProperties = new SectionProperties(this); // this.Document.Styles.Add(this); }