SlideSize

SlideSize class

Represents the size and orientation of a slide.

getOrientation

NameDescription
getOrientation ()Gets or sets the slide orientation. Changing this value swaps the slide�s width and height.

Returns: int


getSize

NameDescription
getSize ()Gets the slide dimensions in points. Assigning a new value resets the #getType property to SlideSizeType#Custom and sets the #getOrientation/ #setOrientation(int).

Returns: Dimension2D


getType

NameDescription
getType ()Gets the slide size type. Assigning any value other than SlideSizeType#Custom adjusts the #getSize according to the predefined dimensions, while retaining the current #getOrientation/ #setOrientation(int).

Returns: int


setOrientation

NameDescription
setOrientation (int)Gets or sets the slide orientation. Changing this value swaps the slide�s width and height.

setSize

NameDescription
setSize (int, int)Sets the slide size by type and scales existing content.

Parameters:

NameTypeDescription
typeintThe predefined slide size to apply.
scaleTypeintThe content scaling mode to use. Assigning any value other than SlideSizeType#Custom adjusts the #getSize based on the selected type, while preserving #getOrientation/ #setOrientation(int).

setSize

NameDescription
setSize (float, float, int)Sets the slide dimensions explicitly and scales existing content.

Parameters:

NameTypeDescription
widthfloatThe new slide width, in points.
heightfloatThe new slide height, in points.
scaleTypeintThe content scaling mode to use. This resets the #getType property to SlideSizeType#Custom and sets the #getOrientation/ #setOrientation(int).