ViewProperties Class
Gets the presentation view properties.
Declaration
public class ViewProperties extends PresentationObject
Remarks
Refer to the following help topic for additional information: Customize Presentation Views with Presentation API for Java.
Inherited Members
Inheritance
ViewProperties()
Initializes a new instance of the ViewProperties class.
Declaration
public ViewProperties()
Methods
deepClone() Method
Clones the current ViewProperties instance.
Declaration
public ViewProperties deepClone()
Returns
| Type | Description |
|---|---|
ViewProperties |
The cloned |
getActiveViewType() Method
Returns the preferred initial view type of the presentation. This value does not guarantee that the presentation application displays the presentation in this view.
Declaration
public ViewType getActiveViewType()
Returns
| Type | Description |
|---|---|
| ViewType | The type of the preferred initial view that the application displays when a user opens the presentation. |
getGridSpacing() Method
Returns the spacing of the alignment grid used in the presentation layout.
Declaration
public float getGridSpacing()
Returns
| Type | Description |
|---|---|
| float | The grid spacing, in points. |
getNormalViewProperties() Method
Returns properties of the normal view.
Declaration
public NormalViewProperties getNormalViewProperties()
Returns
| Type | Description |
|---|---|
| NormalViewProperties | The normal view properties, or |
Remarks
The normal view consists of three content regions: the slide, a side content region, and a bottom content region.

getNotesViewProperties() Method
Returns properties of the notes view mode.
Declaration
public CommonSlideViewProperties getNotesViewProperties()
Returns
| Type | Description |
|---|---|
| CommonSlideViewProperties | The notes view properties, or |
getShowComments() Method
Returns whether to display slide comments. Applications may ignore this setting.
Declaration
public boolean getShowComments()
Returns
| Type | Description |
|---|---|
| boolean |
|
Remarks
Note
Presentation applications (such as PowerPoint, LibreOffice, or OpenOffice) may ignore this value.
getSlideViewProperties() Method
Returns properties of the slide view mode.
Declaration
public CommonSlideViewProperties getSlideViewProperties()
Returns
| Type | Description |
|---|---|
| CommonSlideViewProperties | The slide view properties, or |
setActiveViewType(ViewType value) Method
Sets the preferred initial view type of the presentation. This value does not guarantee that the presentation application displays the presentation in this view.
Declaration
public void setActiveViewType(ViewType value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ViewType | The type of the preferred initial view that the application displays when a user opens the presentation. |
setGridSpacing(float value) Method
Sets the spacing of the alignment grid used in the presentation layout.
Declaration
public void setGridSpacing(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The grid spacing, in points. |
setNormalViewProperties(NormalViewProperties value) Method
Sets properties of the normal view.
Declaration
public void setNormalViewProperties(NormalViewProperties value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | NormalViewProperties | The normal view properties. |
Remarks
The normal view consists of three content regions: the slide, a side content region, and a bottom content region.

setNotesViewProperties(CommonSlideViewProperties value) Method
Sets properties of the notes view mode.
Declaration
public void setNotesViewProperties(CommonSlideViewProperties value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | CommonSlideViewProperties | The notes view properties. |
setShowComments(boolean value) Method
Sets whether to display slide comments. Applications may ignore this setting.
Declaration
public void setShowComments(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
Note
Presentation applications (such as PowerPoint, LibreOffice, or OpenOffice) may ignore this value.
setSlideViewProperties(CommonSlideViewProperties value) Method
Sets properties of the slide view mode.
Declaration
public void setSlideViewProperties(CommonSlideViewProperties value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | CommonSlideViewProperties | The slide view properties. |