## Shape::SetX method


Gets and sets the horizontal offset of shape from worksheet left border,in unit of pixels.

```cpp
void Aspose::Cells::Drawing::Shape::SetX(int32_t value)
```


## Examples


```cpp
if (shape.GetX() == 3)
    shape.SetX(1);
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [Shape](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
