internal LineMomentLine(LineMomentPage page) : base(page) { }
public Page Compose() { try { //switch on format switch (format) { case Format.Fill: { //Create new page FillPage page = new FillPage(wrap); //Add words to page page.Add(words); return(page); } case Format.FillSoft: { //Create new page FillSoftPage page = new FillSoftPage(wrap, wrapSoft); //Add words to page page.Add(words); page.FormatPage(); return(page); } case Format.FillAdjust: { //Create new page FillAdjustPage page = new FillAdjustPage(wrap); //Add words to page page.Add(words); page.FormatPage(); return(page); } case Format.LineMoment: { //Create new page LineMomentPage page = new LineMomentPage(wrap, columnMoment); //Add words to page page.Add(words); page.FormatPage(); return(page); } case Format.FillSet: { //Create new page FillSetPage page = new FillSetPage(wrap); //Add words to page page.Add(words); return(page); } default: { throw new Exception("Unknown format."); } } } catch (Exception) { return(null); } }