Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the Table class, and sets all the properties to their initial values.
        /// </summary>
        /// <param name="columns">Title cells to be added to the header.</param>
        public Table(params string[] columns)
        {
            Header = new HeaderOptions(this);
            Footer = new FooterOptions(this);

            if (columns.Contains(null))
            {
                throw new ArgumentException("Cells cannot be null.");
            }

            Columns = columns.Count();

            for (int i = 0; i < Columns; i++)
            {
                table.Add(new List <string>());
            }

            AddRow(columns);
        }
 public PropertiesFileEditorService(IOptions <FooterOptions> footerOptions, IFooterArranger footerArranger)
 {
     this.footerOptions  = footerOptions.Value;
     this.footerArranger = footerArranger;
 }
Exemple #3
0
 public FooterArranger(IOptions <FooterOptions> footerOptions, IFooterBuilder footerBuilder)
 {
     this.footerOptions = footerOptions.Value;
     this.footerBuilder = footerBuilder;
 }
 public FooterBuilder(IOptions <FooterOptions> footerOptions)
 {
     this.footerOptions = footerOptions.Value;
 }