Exemplo n.º 1
0
        public void RemoveColumn(XSSFTableColumn column)
        {
            int columnIndex = GetColumns().IndexOf(column);

            if (columnIndex >= 0)
            {
                ctTable.tableColumns.RemoveTableColumn(columnIndex);
                UpdateReferences();
                UpdateHeaders();
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Note this list is static - once read, it does not notice later changes to the underlying column structures
 /// </summary>
 /// <returns></returns>
 public List <XSSFTableColumn> GetColumns()
 {
     if (tableColumns == null)
     {
         var             columns        = new List <XSSFTableColumn>();
         CT_TableColumns ctTableColumns = ctTable.tableColumns;
         if (ctTableColumns != null)
         {
             foreach (CT_TableColumn column in ctTableColumns.GetTableColumnList())
             {
                 XSSFTableColumn tableColumn = new XSSFTableColumn(this, column);
                 columns.Add(tableColumn);
             }
         }
         tableColumns = columns;
     }
     return(tableColumns);
 }