CommonSlideViewProperties

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ICommonSlideViewProperties

public class CommonSlideViewProperties implements ICommonSlideViewProperties

Represents common slide view properties.


The following example shows how to set the zoom value for slide of PowerPoint Presentation.
 
 // Instantiate a Presentation object that represents a presentation file
 Presentation pres = new Presentation("demo.pptx");
 try {
     // Setting View Properties of Presentation
     pres.getViewProperties().getSlideViewProperties().setScale(100); // Zoom value in percentages for slide view
     pres.getViewProperties().getNotesViewProperties().setScale(100); // Zoom value in percentages for notes view
     pres.save("Zoom_out.pptx", SaveFormat.Pptx);
 } finally {
     if (pres != null) pres.dispose();
 }

Methods

MethodDescription
getScale()Specifies the view scaling ratio in percentages.
setScale(int value)Specifies the view scaling ratio in percentages.
getVariableScale()Specifies that the view content should automatically scale to best fit the current window size.
setVariableScale(boolean value)Specifies that the view content should automatically scale to best fit the current window size.

getScale()

public final int getScale()

Specifies the view scaling ratio in percentages. Read/write int.

Returns: int

setScale(int value)

public final void setScale(int value)

Specifies the view scaling ratio in percentages. Read/write int.

Parameters:

ParameterTypeDescription
valueint

getVariableScale()

public final boolean getVariableScale()

Specifies that the view content should automatically scale to best fit the current window size. Read/write boolean.

Returns: boolean

setVariableScale(boolean value)

public final void setVariableScale(boolean value)

Specifies that the view content should automatically scale to best fit the current window size. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean