public interface 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.
|
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.
|
int getLastView()
Specifies the view mode that was used when the presentation document was last saved.
Read/write ViewType.
void setLastView(int value)
Specifies the view mode that was used when the presentation document was last saved.
Read/write ViewType.
byte getShowComments()
Specifies whether the slide comments should be shown.
Read/write NullableBool.
void setShowComments(byte value)
Specifies whether the slide comments should be shown.
Read/write NullableBool.
ICommonSlideViewProperties getSlideViewProperties()
Specifies common view properties associated with the slide view mode.
Read-only ICommonSlideViewProperties.
ICommonSlideViewProperties getNotesViewProperties()
Specifies common view properties associated with the notes view mode.
Read-only ICommonSlideViewProperties.
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.
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(); }
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(); }
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.