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


## SetInvertIfNegative function

If the property is true and the value of chart point is a negative number,the foreground color and background color will be exchanged.

```go

func (instance *Walls) SetInvertIfNegative(value bool)  error

```

## Remarks


## See Also

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