public class ViewProperties extends java.lang.Object implements IViewProperties
Presentation wide view properties.
| Modifier and Type | Method and Description |
|---|---|
float |
getGridSpacing()
Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points.
|
int |
getLastView()
Specifies the view mode that was used when the presentation document was last saved.
|
INormalViewProperties |
getNormalViewProperties()
Represents normal view properties.
|
ICommonSlideViewProperties |
getNotesViewProperties()
Specifies common view properties associated with the notes view mode.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
byte |
getShowComments()
Specifies whether the slide comments should be shown.
|
ICommonSlideViewProperties |
getSlideViewProperties()
Specifies common view properties associated with the slide view mode.
|
void |
setGridSpacing(float value)
Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points.
|
void |
setLastView(int value)
Specifies the view mode that was used when the presentation document was last saved.
|
void |
setShowComments(byte value)
Specifies whether the slide comments should be shown.
|
public final int getLastView()
Specifies the view mode that was used when the presentation document was last saved.
Read/write ViewType.
getLastView in interface IViewPropertiespublic final void setLastView(int value)
Specifies the view mode that was used when the presentation document was last saved.
Read/write ViewType.
setLastView in interface IViewPropertiespublic final byte getShowComments()
Specifies whether the slide comments should be shown.
Read/write NullableBool.
getShowComments in interface IViewPropertiespublic final void setShowComments(byte value)
Specifies whether the slide comments should be shown.
Read/write NullableBool.
setShowComments in interface IViewPropertiespublic final INormalViewProperties getNormalViewProperties()
Represents normal view properties. The normal view consists of
three content regions: the slide itself, a side content region, and a bottom content region.
Read-only INormalViewProperties.
getNormalViewProperties in interface IViewPropertiespublic final ICommonSlideViewProperties getSlideViewProperties()
Specifies common view properties associated with the slide view mode.
Read-only ICommonSlideViewProperties.
getSlideViewProperties in interface IViewPropertiespublic final ICommonSlideViewProperties getNotesViewProperties()
Specifies common view properties associated with the notes view mode.
Read-only ICommonSlideViewProperties.
getNotesViewProperties in interface IViewPropertiespublic final float getGridSpacing()
Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points. Read/write float.
The following sample code shows how to change the grid spacing in a PowerPoint presentation.Presentation pres = new Presentation(); try { pres.getViewProperties().setGridSpacing(72f); pres.save("GridSpacing_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); }
getGridSpacing in interface IViewPropertiespublic final void setGridSpacing(float value)
Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points. Read/write float.
The following sample code shows how to change the grid spacing in a PowerPoint presentation.Presentation pres = new Presentation(); try { pres.getViewProperties().setGridSpacing(72f); pres.save("GridSpacing_out.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); }
setGridSpacing in interface IViewPropertiespublic final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.