# GC.Spread.Sheets.ButtonPosition

## Content

# Enumeration: ButtonPosition

[Spread](../modules/GC.Spread).[Sheets](../modules/GC.Spread.Sheets).ButtonPosition

Specifies the position of cellbutton.

**`example`**
```javascript
//This example sets the position of cellbutton.
//create config
leftButtonConfig1 = {
    caption: "left",
    enabled: true,
    position: GC.Spread.Sheets.ButtonPosition.right,
    visibility:GC.Spread.Sheets.ButtonVisibility.always,
};
rightButtonConfig1 = {
    caption: "left",
    enabled: true,
    position: GC.Spread.Sheets.ButtonPosition.left,
    visibility:GC.Spread.Sheets.ButtonVisibility.onSelected,
};
//create style
var style = new GC.Spread.Sheets.Style();
style.cellButtons=[
     leftButtonConfig1,
     rightButtonConfig1
];
sheet.setStyle(0, 0, style);
```

## Table of contents

### Enumeration members

- [left](GC.Spread.Sheets.ButtonPosition#left)
- [right](GC.Spread.Sheets.ButtonPosition#right)

## Enumeration members

### <a id="left" name="left"></a> left

• **left** = `0`

Indicates the cellbutton is in left of the cell.

___

### <a id="right" name="right"></a> right

• **right** = `1`

Indicates the cellbutton is in right of the cell.
