# SectionStyleProperty

The options that style a section.

- 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 sectionStyleProperty: quicksight.CfnAnalysis.SectionStyleProperty = {
  height: 'height',
  padding: {
    bottom: 'bottom',
    left: 'left',
    right: 'right',
    top: 'top',
  },
};
```

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

section_style_property = quicksight.CfnAnalysis.SectionStyleProperty(
    height="height",
    padding=quicksight.CfnAnalysis.SpacingProperty(
        bottom="bottom",
        left="left",
        right="right",
        top="top"
    )
)
```

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.*;

SectionStyleProperty sectionStyleProperty = SectionStyleProperty.builder()
        .height("height")
        .padding(SpacingProperty.builder()
                .bottom("bottom")
                .left("left")
                .right("right")
                .top("top")
                .build())
        .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 sectionStyleProperty = new SectionStyleProperty {
    Height = "height",
    Padding = new SpacingProperty {
        Bottom = "bottom",
        Left = "left",
        Right = "right",
        Top = "top"
    }
};
```

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"

sectionStyleProperty := &SectionStyleProperty{
	Height: jsii.String("height"),
	Padding: &SpacingProperty{
		Bottom: jsii.String("bottom"),
		Left: jsii.String("left"),
		Right: jsii.String("right"),
		Top: jsii.String("top"),
	},
}
```

## Properties

- `height`: string — The height of a section.

  Heights can only be defined for header and footer sections. The default height margin is 0.5 inches.

- `padding`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.SpacingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.SpacingProperty.html) — The spacing between section content and its top, bottom, left, and right edges.

  There is no padding by default.
