SlideSize
Inheritance: java.lang.Object, com.aspose.slides.DomObject
All Implemented Interfaces: com.aspose.slides.ISlideSize
public class SlideSize extends DomObject<Presentation> implements ISlideSize
Represents a size of slide.
Methods
Method | Description |
---|---|
getSize() | Returns or sets the size in points. |
getType() | Returns or sets the type of slide size. |
getOrientation() | Returns or sets the slide orientation. |
setOrientation(int value) | Returns or sets the slide orientation. |
setSize(int type, int scaleType) | Sets the type of slide size and scales content using scale type. |
setSize(float width, float height, int scaleType) | Sets the size in points and scales content using scale type. |
getSize()
public final SizeF getSize()
Returns or sets the size in points. Read/write SizeF.
Assigning any value will reset (#getType.getType) property to SlideSizeType.Custom and set (#getOrientation.getOrientation/#setOrientation(int).setOrientation(int)).
Returns: SizeF
getType()
public final int getType()
Returns or sets the type of slide size. Read/write SlideSizeType.
Assigning any value except SlideSizeType.Custom will change (#getSize.getSize) accordingly, but will keep (#getOrientation.getOrientation/#setOrientation(int).setOrientation(int)) intact.
Returns: int
getOrientation()
public final int getOrientation()
Returns or sets the slide orientation. Read/write SlideOrientation.
Changing this value will swap slide’s dimensions.
Returns: int
setOrientation(int value)
public final void setOrientation(int value)
Returns or sets the slide orientation. Read/write SlideOrientation.
Changing this value will swap slide’s dimensions.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setSize(int type, int scaleType)
public final void setSize(int type, int scaleType)
Sets the type of slide size and scales content using scale type.
Parameters:
Parameter | Type | Description |
---|---|---|
type | int | Slide size type. |
scaleType | int | Scale type of slide content. |
Assigning any value except SlideSizeType.Custom will change (#getSize.getSize) accordingly, but will keep (#getOrientation.getOrientation/#setOrientation(int).setOrientation(int)) intact. |
setSize(float width, float height, int scaleType)
public final void setSize(float width, float height, int scaleType)
Sets the size in points and scales content using scale type.
Parameters:
Parameter | Type | Description |
---|---|---|
width | float | Width. |
height | float | Height. |
scaleType | int | Scale type of slide content. |
Assigning any value will reset (#getType.getType) property to SlideSizeType.Custom and set (#getOrientation.getOrientation/#setOrientation(int).setOrientation(int)). |