IViewProperties
public interface IViewProperties
Presentation wide view properties.
Methods
Method | Description |
---|---|
getLastView() | Specifies the view mode that was used when the presentation document was last saved. |
setLastView(int value) | Specifies the view mode that was used when the presentation document was last saved. |
getShowComments() | Specifies whether the slide comments should be shown. |
setShowComments(byte value) | Specifies whether the slide comments should be shown. |
getSlideViewProperties() | Specifies common view properties associated with the slide view mode. |
getNotesViewProperties() | Specifies common view properties associated with the notes view mode. |
getNormalViewProperties() | Represents normal view properties. |
getGridSpacing() | Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points. |
setGridSpacing(float value) | Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points. |
getLastView()
public abstract int getLastView()
Specifies the view mode that was used when the presentation document was last saved. Read/write ViewType.
Returns: int
setLastView(int value)
public abstract void setLastView(int value)
Specifies the view mode that was used when the presentation document was last saved. Read/write ViewType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getShowComments()
public abstract byte getShowComments()
Specifies whether the slide comments should be shown. Read/write NullableBool.
Returns: byte
setShowComments(byte value)
public abstract void setShowComments(byte value)
Specifies whether the slide comments should be shown. Read/write NullableBool.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getSlideViewProperties()
public abstract ICommonSlideViewProperties getSlideViewProperties()
Specifies common view properties associated with the slide view mode. Read-only ICommonSlideViewProperties.
Returns: ICommonSlideViewProperties
getNotesViewProperties()
public abstract ICommonSlideViewProperties getNotesViewProperties()
Specifies common view properties associated with the notes view mode. Read-only ICommonSlideViewProperties.
Returns: ICommonSlideViewProperties
getNormalViewProperties()
public abstract 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.
Returns: INormalViewProperties
getGridSpacing()
public abstract 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(); }
The grid spacing value must be a positive number. The typical value range is from 1 mm (2.8349607 points) to 2 inches (144 points).
Returns: float
setGridSpacing(float value)
public abstract 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(); }
The grid spacing value must be a positive number. The typical value range is from 1 mm (2.8349607 points) to 2 inches (144 points).
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |