SlideSize Class
Gets or sets the slide size and orientation.
Declaration
public final class SlideSize extends Struct<SlideSize> implements IEquatable<SlideSize>
Remarks
Refer to the following help topic for additional information: Slide Size and Orientation — Presentation API for Java.
Implements
Inherited Members
Inheritance
Constructors
SlideSize() Constructor
Initializes a new instance of the SlideSize class.
Declaration
public SlideSize()
SlideSize(float width, float height) Constructor
Initializes a new instance of the SlideSize class with specified settings.
Declaration
public SlideSize(float width, float height)
Parameters
| Name | Type | Description |
|---|---|---|
| width | float | The slide width. |
| height | float | The slide height. |
SlideSize(SlideSizeType type, SlideOrientation orientation) Constructor
Initializes a new instance of the SlideSize class with specified settings.
Declaration
public SlideSize(SlideSizeType type, SlideOrientation orientation)
Parameters
| Name | Type | Description |
|---|---|---|
| type | SlideSizeType | The slide size type. |
| orientation | SlideOrientation | The slide orientation. |
SlideSize(SlideSizeType type) Constructor
Initializes a new instance of the SlideSize class with specified settings.
Declaration
public SlideSize(SlideSizeType type)
Parameters
| Name | Type | Description |
|---|---|---|
| type | SlideSizeType | The slide size type. |
Fields
DEFAULT Field
The default slide size.
Declaration
public static final SlideSize DEFAULT
Field Value
| Type | Description |
|---|---|
SlideSize |
The default slide size. |
Methods
equals(Object obj) Method
Determines whether the specified SlideSize instance is equal to the current SlideSize object.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The object to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(SlideSize value) Method
Determines whether the specified SlideSize instance is equal to the current SlideSize object.
Declaration
public boolean equals(SlideSize value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | SlideSize |
A |
Returns
| Type | Description |
|---|---|
| boolean |
|
getHeight() Method
Returns the slide height in Document units.
Declaration
public float getHeight()
Returns
| Type | Description |
|---|---|
| float | The slide height. |
Remarks
Use the SlideSize constructor to create a SlideSize instance with specified width and height.
getOrientation() Method
Returns the slide orientation.
Declaration
public SlideOrientation getOrientation()
Returns
| Type | Description |
|---|---|
| SlideOrientation | The slide orientation. |
getType() Method
Returns one of the predefined slide size types set for presentation slides.
Declaration
public SlideSizeType getType()
Returns
| Type | Description |
|---|---|
| SlideSizeType | The slide size type. |
getWidth() Method
Returns the slide width in Document units (1/300 of an inch).
Declaration
public float getWidth()
Returns
| Type | Description |
|---|---|
| float | The slide width in Document units. |
Remarks
Use the SlideSize constructor to create a SlideSize instance with specified width and height.
hashCode() Method
Returns a hash code for this SlideSize object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The identification number. |