# TableCellStyleProperty

The table cell style for a cell in pivot table or table visual.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const tableCellStyleProperty: quicksight.CfnTemplate.TableCellStyleProperty = {
  backgroundColor: 'backgroundColor',
  border: {
    sideSpecificBorder: {
      bottom: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
      innerHorizontal: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
      innerVertical: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
      left: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
      right: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
      top: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
    },
    uniformBorder: {
      color: 'color',
      style: 'style',
      thickness: 123,
    },
  },
  fontConfiguration: {
    fontColor: 'fontColor',
    fontDecoration: 'fontDecoration',
    fontFamily: 'fontFamily',
    fontSize: {
      absolute: 'absolute',
      relative: 'relative',
    },
    fontStyle: 'fontStyle',
    fontWeight: {
      name: 'name',
    },
  },
  height: 123,
  horizontalTextAlignment: 'horizontalTextAlignment',
  textWrap: 'textWrap',
  verticalTextAlignment: 'verticalTextAlignment',
  visibility: 'visibility',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

table_cell_style_property = quicksight.CfnTemplate.TableCellStyleProperty(
    background_color="backgroundColor",
    border=quicksight.CfnTemplate.GlobalTableBorderOptionsProperty(
        side_specific_border=quicksight.CfnTemplate.TableSideBorderOptionsProperty(
            bottom=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            ),
            inner_horizontal=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            ),
            inner_vertical=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            ),
            left=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            ),
            right=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            ),
            top=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            )
        ),
        uniform_border=quicksight.CfnTemplate.TableBorderOptionsProperty(
            color="color",
            style="style",
            thickness=123
        )
    ),
    font_configuration=quicksight.CfnTemplate.FontConfigurationProperty(
        font_color="fontColor",
        font_decoration="fontDecoration",
        font_family="fontFamily",
        font_size=quicksight.CfnTemplate.FontSizeProperty(
            absolute="absolute",
            relative="relative"
        ),
        font_style="fontStyle",
        font_weight=quicksight.CfnTemplate.FontWeightProperty(
            name="name"
        )
    ),
    height=123,
    horizontal_text_alignment="horizontalTextAlignment",
    text_wrap="textWrap",
    vertical_text_alignment="verticalTextAlignment",
    visibility="visibility"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

TableCellStyleProperty tableCellStyleProperty = TableCellStyleProperty.builder()
        .backgroundColor("backgroundColor")
        .border(GlobalTableBorderOptionsProperty.builder()
                .sideSpecificBorder(TableSideBorderOptionsProperty.builder()
                        .bottom(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .innerHorizontal(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .innerVertical(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .left(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .right(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .top(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .build())
                .uniformBorder(TableBorderOptionsProperty.builder()
                        .color("color")
                        .style("style")
                        .thickness(123)
                        .build())
                .build())
        .fontConfiguration(FontConfigurationProperty.builder()
                .fontColor("fontColor")
                .fontDecoration("fontDecoration")
                .fontFamily("fontFamily")
                .fontSize(FontSizeProperty.builder()
                        .absolute("absolute")
                        .relative("relative")
                        .build())
                .fontStyle("fontStyle")
                .fontWeight(FontWeightProperty.builder()
                        .name("name")
                        .build())
                .build())
        .height(123)
        .horizontalTextAlignment("horizontalTextAlignment")
        .textWrap("textWrap")
        .verticalTextAlignment("verticalTextAlignment")
        .visibility("visibility")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var tableCellStyleProperty = new TableCellStyleProperty {
    BackgroundColor = "backgroundColor",
    Border = new GlobalTableBorderOptionsProperty {
        SideSpecificBorder = new TableSideBorderOptionsProperty {
            Bottom = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            },
            InnerHorizontal = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            },
            InnerVertical = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            },
            Left = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            },
            Right = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            },
            Top = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            }
        },
        UniformBorder = new TableBorderOptionsProperty {
            Color = "color",
            Style = "style",
            Thickness = 123
        }
    },
    FontConfiguration = new FontConfigurationProperty {
        FontColor = "fontColor",
        FontDecoration = "fontDecoration",
        FontFamily = "fontFamily",
        FontSize = new FontSizeProperty {
            Absolute = "absolute",
            Relative = "relative"
        },
        FontStyle = "fontStyle",
        FontWeight = new FontWeightProperty {
            Name = "name"
        }
    },
    Height = 123,
    HorizontalTextAlignment = "horizontalTextAlignment",
    TextWrap = "textWrap",
    VerticalTextAlignment = "verticalTextAlignment",
    Visibility = "visibility"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

tableCellStyleProperty := &TableCellStyleProperty{
	BackgroundColor: jsii.String("backgroundColor"),
	Border: &GlobalTableBorderOptionsProperty{
		SideSpecificBorder: &TableSideBorderOptionsProperty{
			Bottom: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
			InnerHorizontal: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
			InnerVertical: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
			Left: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
			Right: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
			Top: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
		},
		UniformBorder: &TableBorderOptionsProperty{
			Color: jsii.String("color"),
			Style: jsii.String("style"),
			Thickness: jsii.Number(123),
		},
	},
	FontConfiguration: &FontConfigurationProperty{
		FontColor: jsii.String("fontColor"),
		FontDecoration: jsii.String("fontDecoration"),
		FontFamily: jsii.String("fontFamily"),
		FontSize: &FontSizeProperty{
			Absolute: jsii.String("absolute"),
			Relative: jsii.String("relative"),
		},
		FontStyle: jsii.String("fontStyle"),
		FontWeight: &FontWeightProperty{
			Name: jsii.String("name"),
		},
	},
	Height: jsii.Number(123),
	HorizontalTextAlignment: jsii.String("horizontalTextAlignment"),
	TextWrap: jsii.String("textWrap"),
	VerticalTextAlignment: jsii.String("verticalTextAlignment"),
	Visibility: jsii.String("visibility"),
}
```

## Properties

- `backgroundColor`: string — The background color for the table cells.

- `border`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.GlobalTableBorderOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.GlobalTableBorderOptionsProperty.html) — The borders for the table cells.

- `fontConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.FontConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.FontConfigurationProperty.html) — The font configuration of the table cells.

- `height`: number — The height color for the table cells.

- `horizontalTextAlignment`: string — The horizontal text alignment (left, center, right, auto) for the table cells.

- `textWrap`: string — The text wrap (none, wrap) for the table cells.

- `verticalTextAlignment`: string — The vertical text alignment (top, middle, bottom) for the table cells.

- `visibility`: string — The visibility of the table cells.
