ViewProperties

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IViewProperties, com.aspose.slides.IDOMObject

public class ViewProperties implements IViewProperties, IDOMObject

Presentation wide view properties.

Methods

MethodDescription
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.
getNormalViewProperties()Represents normal view properties.
getSlideViewProperties()Specifies common view properties associated with the slide view mode.
getNotesViewProperties()Specifies common view properties associated with the notes view mode.
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.
getParent_Immediate()

getLastView()

public final 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 final void setLastView(int value)

Specifies the view mode that was used when the presentation document was last saved. Read/write ViewType.

Parameters:

ParameterTypeDescription
valueint

getShowComments()

public final byte getShowComments()

Specifies whether the slide comments should be shown. Read/write NullableBool.

Returns: byte

setShowComments(byte value)

public final void setShowComments(byte value)

Specifies whether the slide comments should be shown. Read/write NullableBool.

Parameters:

ParameterTypeDescription
valuebyte

getNormalViewProperties()

public 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.

Returns: INormalViewProperties

getSlideViewProperties()

public final ICommonSlideViewProperties getSlideViewProperties()

Specifies common view properties associated with the slide view mode. Read-only ICommonSlideViewProperties.

Returns: ICommonSlideViewProperties

getNotesViewProperties()

public final ICommonSlideViewProperties getNotesViewProperties()

Specifies common view properties associated with the notes view mode. Read-only ICommonSlideViewProperties.

Returns: ICommonSlideViewProperties

getGridSpacing()

public 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();
 }

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 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();
 }

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:

ParameterTypeDescription
valuefloat

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject