SetSize

SetSize(SlideSizeType, SlideSizeScaleType)

Sets the slide size by type and scales existing content.

public void SetSize(SlideSizeType type, SlideSizeScaleType scaleType)
ParameterTypeDescription
typeSlideSizeTypeThe predefined slide size to apply.
scaleTypeSlideSizeScaleTypeThe content scaling mode to use.

Remarks

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

See Also


SetSize(float, float, SlideSizeScaleType)

Sets the slide dimensions explicitly and scales existing content.

public void SetSize(float width, float height, SlideSizeScaleType scaleType)
ParameterTypeDescription
widthSingleThe new slide width, in points.
heightSingleThe new slide height, in points.
scaleTypeSlideSizeScaleTypeThe content scaling mode to use.

Remarks

This resets the Type property to Custom and sets the Orientation.

See Also