예제 #1
0
        public Table(TableConfiguration config, params object[] columns)
            : this(config)
        {
            if (columns == null)
            {
                throw new ArgumentNullException(nameof(columns));
            }

            m_columns.AddRange(columns);
        }
예제 #2
0
        public Table(TableConfiguration config, Alignment rowsAlignment = Alignment.Left, Alignment headerAlignment = Alignment.Left, params object[] columns)
            : this(config)
        {
            if (columns == null)
            {
                throw new ArgumentNullException(nameof(columns));
            }

            foreach (var column in columns)
            {
                m_columns.Add(new ColumnHeader(column, rowsAlignment, headerAlignment));
            }
        }
예제 #3
0
 public Table(TableConfiguration config)
 {
     m_columns = new List <object>();
     m_rows    = new List <object[]>();
     Config    = config;
 }