SetSize()

SlideSize::SetSize(SlideSizeType, SlideSizeScaleType) method

Sets the type of slide size and scales content using scale type.

void Aspose::Slides::SlideSize::SetSize(SlideSizeType type, SlideSizeScaleType scaleType) override

Arguments

ParameterTypeDescription
typeSlideSizeTypeSlide size type.
scaleTypeSlideSizeScaleTypeScale type of slide content.

Remarks

Assigning any value except SlideSizeType::Custom will change SlideSize::get_Size accordingly, but will keep SlideSize::get_Orientation intact.

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

Sets the size in points and scales content using scale type.

void Aspose::Slides::SlideSize::SetSize(float width, float height, SlideSizeScaleType scaleType) override

Arguments

ParameterTypeDescription
widthfloatWidth.
heightfloatHeight.
scaleTypeSlideSizeScaleTypeScale type of slide content.

Remarks

Assigning any value will reset Type property to SlideSizeType::Custom and set SlideSize::get_Orientation().

See Also