IContainerStyle

Defines the visual style applied to a container element in an exported PDF document.

Inherited from the following class(es):

backgroundColor property

Specifies the background color of the container element.

Supported formats:

  • Hexadecimal color values with an optional alpha channel (for example, "#ff0000", "#0000FF80")
  • RGB and RGBA functional notation (for example, "rgb(255, 0, 0)", "rgba(0, 0, 255, 0.5)")
  • CSS-named colors (for example, "green", "red", "aliceblue")
Type:
string readonly
Implemented in:
IContainerStyle
borderColor property

Specifies the border color.

Supported formats:

  • Hexadecimal color values with an optional alpha channel (for example, "#ff0000", "#0000FF80")
  • RGB and RGBA functional notation (for example, "rgb(255, 0, 0)", "rgba(0, 0, 255, 0.5)")
  • CSS-named colors (for example, "green", "red", "aliceblue")

A single value applies the same color to all four sides. An array assigns colors per side using CSS shorthand semantics:

// all four sides
borderColor: "#ff0000",
// top and bottom | left and right
borderColor: ["#ff0000", "#0000ff"],
// top | left and right | bottom
borderColor: ["#ff0000", "#008000", "#0000ff"],
// top | right | bottom | left
borderColor: ["#ff0000", "#008000", "#0000ff", "#FFA500"]
Type:
any readonly
Implemented in:
IBorderStyle
borderRadius property

Specifies the border radius, in points.

A single value applies the same radius to all four corners. An array assigns corner radii using CSS shorthand semantics:

// all four corners
borderRadius: 15,
// top-left and bottom-right | top-right and bottom-left
borderRadius: [15, 50],
// top-left | top-right and bottom-left | bottom-right
borderRadius: [15, 50, 30],
// top-left | top-right | bottom-right | bottom-left
borderRadius: [15, 50, 30, 5]
Type:
any readonly
Implemented in:
IBorderStyle
borderWidth property

Specifies the border width, in points.

A single value applies the same width to all four sides. An array assigns widths per side using CSS shorthand semantics:

// all four sides
borderWidth: 2,
// top and bottom | left and right
borderWidth: [2, 1],
// top | left and right | bottom
borderWidth: [2, 1, 4],
// top | right | bottom | left
borderWidth: [2, 1, 4, 3]
Type:
any readonly
Implemented in:
IBorderStyle
padding property

Specifies the container padding, in points.

A single number applies uniform padding to all sides. An array specifies padding values for individual sides:

// all four sides
padding: 12,
// top and bottom | left and right
padding: [12, 24],
// top | left and right | bottom
padding: [12, 6, 24],
// top | right | bottom | left
padding: [12, 12, 24, 24]
Type:
number | {} readonly
Implemented in:
IContainerStyle

Send feedback to the SurveyJS team

Need help? Visit our support page

Your cookie settings

We use cookies to make your browsing experience more convenient and personal. Some cookies are essential, while others help us analyse traffic. Your personal data and cookies may be used for ad personalization. By clicking “Accept All”, you consent to the use of all cookies as described in our Terms of Use and Privacy Statement. You can manage your preferences in “Cookie settings.”

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.