## ListColumn class

Rappresenta una colonna in un elenco.

```csharp
public class ListColumn
```

## Proprietà

| Nome | Descrizione |
| --- | --- |
| [Formula](../../aspose.cells.tables/listcolumn/formula) { get; set; } | Ottiene e imposta la formula della colonna dell'elenco. |
| [Name](../../aspose.cells.tables/listcolumn/name) { get; set; } | Ottiene e imposta il nome della colonna. |
| [Range](../../aspose.cells.tables/listcolumn/range) { get; } | Ottiene l'intervallo di questa colonna dell'elenco. |
| [TotalsCalculation](../../aspose.cells.tables/listcolumn/totalscalculation) { get; set; } | Ottiene e imposta il tipo di calcolo nella riga Totali della colonna dell'elenco. |

## Metodi

| Nome | Descrizione |
| --- | --- |
| [GetCustomCalculatedFormula](../../aspose.cells.tables/listcolumn/getcustomcalculatedformula)(bool, bool) | Ottiene la formula di questa colonna dell'elenco. |
| [GetCustomTotalsRowFormula](../../aspose.cells.tables/listcolumn/getcustomtotalsrowformula)(bool, bool) | Ottiene la formula della riga dei totali di questa colonna dell'elenco. |
| [SetCustomCalculatedFormula](../../aspose.cells.tables/listcolumn/setcustomcalculatedformula)(string, bool, bool) | Imposta la formula per questa colonna dell'elenco. |
| [SetCustomTotalsRowFormula](../../aspose.cells.tables/listcolumn/setcustomtotalsrowformula)(string, bool, bool) | Ottiene la formula della riga dei totali di questa colonna dell'elenco. |

### Esempi

```csharp

[C#]


Workbook workbook = new Workbook();
Cells cells = workbook.Worksheets[0].Cells;
for (int i = 0; i  <5; i++)
{
cells[0,i].PutValue(CellsHelper.ColumnIndexToName(i));
 }
for (int row = 1; row  <10; row++)
{
 for (int column = 0; column  <4; column++)
{
cells[row, column].PutValue(row * column);
 }
 }
ListObjectCollection tables = workbook.Worksheets[0].ListObjects;
int index = tables.Add(0, 0, 9, 4, true);
ListObject table = tables[0];
table.ShowTotals = true;
ListColumn listColumn = table.ListColumns[4];
listColumn.TotalsCalculation = Aspose.Cells.Tables.TotalsCalculation.Sum;
listColumn.Formula = "=[A]";
workbook.Save(@"Book1.xlsx");


[Visual Basic]

Dim workbook As Workbook = New Workbook()
Dim cells As Cells = workbook.Worksheets(0).Cells
For i As Int32 = 0 To 4
 cells(0, i).PutValue(CellsHelper.ColumnIndexToName(i))
Next
For row As Int32 = 1 To 9
 For column As Int32 = 0 To 3
  cells(row, column).PutValue(row * column)
Next
Next
Dim tables As ListObjectCollection = workbook.Worksheets(0).ListObjects
Dim index As Int32 = tables.Add(0, 0, 9, 4, True)
Dim table As ListObject = tables(0)
table.ShowTotals = True
Dim listColumn as ListColumn = table.ListColumns(4);
listColumn.TotalsCalculation = Aspose.Cells.Tables.TotalsCalculation.Sum;
listColumn.Formula = "=[A]";
workbook.Save("Book1.xlsx")
```

### Guarda anche

* spazio dei nomi [Aspose.Cells.Tables](../../aspose.cells.tables)
* assemblea [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
