
**Inheritance:**
java.lang.Object
```
public class PageSize
```

Contains information about page size for the generated images.
## Constructors

| Constructor | Description |
| --- | --- |
| [PageSize(int paperSizeFormat)](#PageSize-int-) | Initializes a new instance of this class that can be used to set page size for the generated images. |
| [PageSize(float width, float height)](#PageSize-float-float-) | Initializes a new instance of this class that can be used to set page size for the generated images. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getHeight()](#getHeight--) | the page height in points for the the generated images. |
| [getPaperSizeFormat()](#getPaperSizeFormat--) | the paper size format for the generated images. |
| [getWidth()](#getWidth--) | the page width in points for the the generated images. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setHeight(float value)](#setHeight-float-) | For the description of this property, please see [getHeight()](../../com.aspose.diagram/pagesize\#getHeight--) |
| [setPaperSizeFormat(int value)](#setPaperSizeFormat-int-) | For the description of this property, please see [getPaperSizeFormat()](../../com.aspose.diagram/pagesize\#getPaperSizeFormat--) |
| [setWidth(float value)](#setWidth-float-) | For the description of this property, please see [getWidth()](../../com.aspose.diagram/pagesize\#getWidth--) |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### PageSize(int paperSizeFormat) {#PageSize-int-}
```
public PageSize(int paperSizeFormat)
```


Initializes a new instance of this class that can be used to set page size for the generated images.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| paperSizeFormat | int | Can be Aspose.Diagram.Saving.PaperSizeFormat. |

### PageSize(float width, float height) {#PageSize-float-float-}
```
public PageSize(float width, float height)
```


Initializes a new instance of this class that can be used to set page size for the generated images.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| width | float | Page width in points for the the generated images. |
| height | float | Page height in points for the the generated images. |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getHeight() {#getHeight--}
```
public float getHeight()
```


the page height in points for the the generated images. The value must be > 0. If Height is set,Width must be set too.

**Returns:**
float
### getPaperSizeFormat() {#getPaperSizeFormat--}
```
public int getPaperSizeFormat()
```


the paper size format for the generated images. Can be Aspose.Diagram.Saving.PaperSizeFormat.

**Returns:**
int
### getWidth() {#getWidth--}
```
public float getWidth()
```


the page width in points for the the generated images. The value must be > 0. If Width is set, Height must be set too.

**Returns:**
float
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setHeight(float value) {#setHeight-float-}
```
public void setHeight(float value)
```


For the description of this property, please see [getHeight()](../../com.aspose.diagram/pagesize\#getHeight--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float |  |

### setPaperSizeFormat(int value) {#setPaperSizeFormat-int-}
```
public void setPaperSizeFormat(int value)
```


For the description of this property, please see [getPaperSizeFormat()](../../com.aspose.diagram/pagesize\#getPaperSizeFormat--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setWidth(float value) {#setWidth-float-}
```
public void setWidth(float value)
```


For the description of this property, please see [getWidth()](../../com.aspose.diagram/pagesize\#getWidth--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

