---
title: "IContainerResizeOptions Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.icontainerresizeoptions.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# IContainerResizeOptions Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure used by [IExternalResizeArgs](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.iexternalresizeargs.htm.md) to define the resize options for containers.
  
 - example
     - ```
const product = await editor.getProduct();
const args = {
    // Resize the current print area to the A5 paper size.
    targetType: "printArea",
    targetIds: [product.currentSurface.printAreas[0].id],
    width: 595,
    height: 420,
    // Apply the Fit mode to all containers.
    defaultOptions: {
        resize: 0,
        resetPlaceholderContent: true
    },
    // Apply the Arbitrary mode to the Background container.
    containerOptions: {
        "Background": {
            resize: 2
        }
    }
};
// Run the resize command.
editor.commandManager.execute("resize", args);
```
 
## Properties
 
### Optional resetPlaceholderContent
 
resetPlaceholderContent: boolean

If `true`, resets the content of resized placeholders. The default value is `true`.
 
### Optional resize
 
resize: [ResizeRectangleType](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.resizerectangletype.htm.md)

Specifies how the container should be resized. The default value is [ResizeRectangleType.Fit](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.commands.resizerectangletype.htm.md).
