# GC.Spread.Sheets.CaptionAlignment

## Content

# Enumeration: CaptionAlignment

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

Specifies the position of caption.

**`example`**
```
//This example sets the position of caption.
//create config
leftButtonConfig1 = {
    caption: "left",
    enabled: true,
    position: GC.Spread.Sheets.ButtonPosition.right,
    captionAlign:GC.Spread.Sheets.CaptionAlignment.right,
};
rightButtonConfig1 = {
    caption: "left",
    enabled: true,
    position: GC.Spread.Sheets.ButtonPosition.left,
    captionAlign:GC.Spread.Sheets.CaptionAlignment.left,
};
//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.CaptionAlignment#left)
- [right](GC.Spread.Sheets.CaptionAlignment#right)

## Enumeration members

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

• **left** = `0`

Indicates the caption is in left of the button.

___

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

• **right** = `1`

Indicates the caption is in right of the button.
