SetSize()

ISlideSize::SetSize(SlideSizeType, SlideSizeScaleType) method

Sets the slide size by type and scales existing content. Assigning any value other than SlideSizeType::Custom adjusts the ISlideSize::get_Size based on the selected type, while preserving ISlideSize::get_Orientation.

virtual void Aspose::Slides::ISlideSize::SetSize(SlideSizeType type, SlideSizeScaleType scaleType)=0

Arguments

ParameterTypeDescription
typeSlideSizeTypeThe predefined slide size to apply.
scaleTypeSlideSizeScaleTypeThe content scaling mode to use.

Remarks

Assigning any value other than SlideSizeType::Custom adjusts the System::Drawing::Size based on the selected type, while preserving Orientation.

ISlideSize::SetSize(float, float, SlideSizeScaleType) method

Sets the slide dimensions explicitly and scales existing content. This resets the ISlideSize::get_Type value to SlideSizeType::Custom and sets the ISlideSize::get_Orientation.

virtual void Aspose::Slides::ISlideSize::SetSize(float width, float height, SlideSizeScaleType scaleType)=0

Arguments

ParameterTypeDescription
widthfloatThe new slide width, in points.
heightfloatThe new slide height, in points.
scaleTypeSlideSizeScaleTypeThe content scaling mode to use.

Remarks

This resets the ISlideSize::get_Type property to SlideSizeType::Custom and sets the Orientation.

See Also