---
title: "SetAxisType Method"
url: "https://reference.aspose.com/cells/go-cpp/pivotarea/setaxistype/"
product: "Aspose.Cells for Go via C++ API Reference"
description: "SetAxisType method. Encapsulates the function that represents setaxistype in Go."
---


## SetAxisType function

Gets and sets the region of the PivotTable to which this rule applies.

```go

func (instance *PivotArea) SetAxisType(value PivotFieldType)  error

```

## Remarks


## See Also

* Class [PivotArea](../)
* Library [Aspose.Cells for Go](../../)
