---
title: "PivotField.GetMaxValue"
url: "https://reference.aspose.com/cells/net/aspose.cells.pivot/pivotfield/getmaxvalue/"
product: "Aspose.Cells for .NET API Reference"
description: "PivotField method. Gets the max value of this field"
---

## PivotField.GetMaxValue method

Gets the max value of this field.

```csharp
public CellValue GetMaxValue()
```

### Remarks

Only works for row or column fields which value must be date time, number or blank.

### See Also

* class [CellValue](../../../aspose.cells/cellvalue/)
* class [PivotField](../)
* namespace [Aspose.Cells.Pivot](../../../aspose.cells.pivot/)
* assembly [Aspose.Cells](../../../)


