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 SlideSize.size
based on the selected type, while preserving SlideSize.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 SlideSize.type
property to SlideSizeType.CUSTOM
and sets the SlideSize.orientation
.
See Also
- class
SlideSize
- enumeration
SlideSizeScaleType
- enumeration
SlideSizeType
- module
aspose.slides
- library
Aspose.Slides