Interface SectionStyle.Builder

  • Method Details

    • height

      SectionStyle.Builder height(String height)

      The height of a section.

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

      Parameters:
      height - The height of a section.

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

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • padding

      SectionStyle.Builder padding(Spacing padding)

      The spacing between section content and its top, bottom, left, and right edges.

      There is no padding by default.

      Parameters:
      padding - The spacing between section content and its top, bottom, left, and right edges.

      There is no padding by default.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • padding

      default SectionStyle.Builder padding(Consumer<Spacing.Builder> padding)

      The spacing between section content and its top, bottom, left, and right edges.

      There is no padding by default.

      This is a convenience method that creates an instance of the Spacing.Builder avoiding the need to create one manually via Spacing.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to padding(Spacing).

      Parameters:
      padding - a consumer that will call methods on Spacing.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: