public class SlideSize extends DomObject<Presentation> implements ISlideSize
Represents the size and orientation of a slide.
| Modifier and Type | Method and Description |
|---|---|
int |
getOrientation()
Gets or sets the slide orientation.
|
java.awt.geom.Dimension2D |
getSize()
Gets the slide dimensions in points.
|
int |
getType()
Gets the slide size type.
|
void |
setOrientation(int value)
Gets or sets the slide orientation.
|
void |
setSize(float width,
float height,
int scaleType)
Sets the slide dimensions explicitly and scales existing content.
|
void |
setSize(int type,
int scaleType)
Sets the slide size by type and scales existing content.
|
getParent_Immediatepublic final java.awt.geom.Dimension2D getSize()
Gets the slide dimensions in points.
getType() property to SlideSizeType.Custom
and sets the getOrientation()/setOrientation(int).
getSize in interface ISlideSizepublic final int getType()
Gets the slide size type.
SlideSizeType.Custom adjusts the getSize()
according to the predefined dimensions, while retaining the current getOrientation()/setOrientation(int).
getType in interface ISlideSizepublic final int getOrientation()
Gets or sets the slide orientation.
getOrientation in interface ISlideSizepublic final void setOrientation(int value)
Gets or sets the slide orientation.
setOrientation in interface ISlideSizepublic final void setSize(int type,
int scaleType)
Sets the slide size by type and scales existing content.
setSize in interface ISlideSizetype - The predefined slide size to apply.scaleType - The content scaling mode to use.
SlideSizeType.Custom adjusts the getSize()
based on the selected type, while preserving getOrientation()/setOrientation(int).
public final void setSize(float width,
float height,
int scaleType)
Sets the slide dimensions explicitly and scales existing content.
setSize in interface ISlideSizewidth - The new slide width, in points.height - The new slide height, in points.scaleType - The content scaling mode to use.
getType() property to SlideSizeType.Custom
and sets the getOrientation()/setOrientation(int).
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.