SetSize()
Contents
[
Hide
]SlideSize::SetSize(SlideSizeType, SlideSizeScaleType) method
Sets the slide size by type and scales existing content.
void Aspose::Slides::SlideSize::SetSize(SlideSizeType type, SlideSizeScaleType scaleType) override
Arguments
Parameter | Type | Description |
---|---|---|
type | SlideSizeType | The predefined slide size to apply. |
scaleType | SlideSizeScaleType | The content scaling mode to use. |
Remarks
Assigning any value other than SlideSizeType::Custom adjusts the SlideSize::get_Size based on the selected type, while preserving SlideSize::get_Orientation.
SlideSize::SetSize(float, float, SlideSizeScaleType) method
Sets the slide dimensions explicitly and scales existing content.
void Aspose::Slides::SlideSize::SetSize(float width, float height, SlideSizeScaleType scaleType) override
Arguments
Parameter | Type | Description |
---|---|---|
width | float | The new slide width, in points. |
height | float | The new slide height, in points. |
scaleType | SlideSizeScaleType | The content scaling mode to use. |
Remarks
This resets the SlideSize::get_Type property to SlideSizeType::Custom and sets the Orientation.
See Also
- Enum SlideSizeType
- Enum SlideSizeScaleType
- Class SlideSize
- Namespace Aspose::Slides
- Library Aspose.Slides