set_size method
Contents
[
Hide
]set_size
Sets the slide size by type and scales existing content.
def set_size(self, type, scale_type):
...
| Parameter | Type | Description |
|---|---|---|
| type | SlideSizeType | The predefined slide size to apply. |
| scale_type | SlideSizeScaleType | The content scaling mode to use. |
Remarks
Assigning any value other than SlideSizeType.CUSTOM adjusts the ISlideSize.size
based on the selected type, while preserving ISlideSize.orientation.
set_size
Sets the slide dimensions explicitly and scales existing content.
def set_size(self, width, height, scale_type):
...
| Parameter | Type | Description |
|---|---|---|
| width | float | The new slide width, in points. |
| height | float | The new slide height, in points. |
| scale_type | SlideSizeScaleType | The content scaling mode to use. |
Remarks
This resets the ISlideSize.type property to SlideSizeType.CUSTOM
and sets the ISlideSize.orientation.
See Also
- class
ISlideSize - enumeration
SlideSizeScaleType - enumeration
SlideSizeType - module
aspose.slides - library
Aspose.Slides