public Section(IDocument doc) : base((Document)doc, null) { this.sectionBreakType_0 = SectionBreakType.NewPage; this.bool_3 = true; this.body_0 = new Spire.Doc.Body(this); this.headersFooters_0 = new Spire.Doc.HeadersFooters(this); this.headersFooters_0.method_0(this); this.class17_0 = new Class17(this); this.SectPr.method_123(new ColumnCollection(this)); this.pageSetup_0 = new Spire.Doc.PageSetup(this); }
public void InsertSectionBreak(SectionBreakType breakType) { var xName = XName.Get("sectPr", Namespaces.w.NamespaceName); var pPr = Xml.Element(XName.Get("pPr", Namespaces.w.NamespaceName)); if (pPr?.Element(xName) != null) { throw new InvalidOperationException("Paragraph already defines a section"); } pPr = ((IParagraphPropertiesContainer)this).GetOrCreateParagraphPropertiesXmlElement(); var sectPr = new XElement(xName); if (breakType != SectionBreakType.NextPage) { sectPr.SetAttributeValue(Namespaces.w + "type", breakType.ToCamelCase()); } pPr.Add(sectPr); }
internal static string smethod_21(SectionBreakType A_0, bool A_1) { int num = 9; switch (A_0) { case SectionBreakType.NoBreak: return(BookmarkStart.b("䰮帰崲䄴帶圸为刼䨾㉀", num)); case SectionBreakType.NewColumn: if (A_1) { return(BookmarkStart.b("䄮吰䬲䄴琶嘸场䠼刾⽀", num)); } return(BookmarkStart.b("䄮吰䬲䄴ᨶ娸吺儼䨾ⱀⵂ", num)); case SectionBreakType.NewPage: if (A_1) { return(BookmarkStart.b("䄮吰䬲䄴朶堸尺堼", num)); } return(BookmarkStart.b("䄮吰䬲䄴ᨶ䤸娺娼娾", num)); case SectionBreakType.EvenPage: if (A_1) { return(BookmarkStart.b("䨮䜰嘲嬴朶堸尺堼", num)); } return(BookmarkStart.b("䨮䜰嘲嬴ᨶ䤸娺娼娾", num)); case SectionBreakType.Oddpage: if (A_1) { return(BookmarkStart.b("䀮唰圲攴嘶常帺", num)); } return(BookmarkStart.b("䀮唰圲ᠴ䜶堸尺堼", num)); } return(""); }
internal void method_57(SectionBreakType A_0) { this.SetAttr(0x7ee, A_0); }
internal void method_64(SectionBreakType A_0) { this.sectionBreakType_0 = A_0; }