ICommonSlideViewProperties

public interface ICommonSlideViewProperties

Represents common slide view properties.

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.
getDrawingGuides()Returns the collection of the drawing guides.

getScale()

public abstract int getScale()

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

Returns: int

setScale(int value)

public abstract void setScale(int value)

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

Parameters:

ParameterTypeDescription
valueint

getVariableScale()

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

getDrawingGuides()

public abstract IDrawingGuidesCollection getDrawingGuides()

Returns the collection of the drawing guides. Read-only IDrawingGuidesCollection


The following sample code shows how to add the new drawing guides in a PowerPoint presentation.
 
 Presentation pres = new Presentation();
 try {
     Dimension2D slideSize = pres.getSlideSize().getSize();

     IDrawingGuidesCollection guides = pres.getViewProperties().getSlideViewProperties().getDrawingGuides();
     // Adding the new vertical drawing guide to the right of the slide center
     guides.add(Orientation.Vertical, (float)(slideSize.getWidth() / 2) + 12.5f);
     // Adding the new horizontal drawing guide below the slide center
     guides.add(Orientation.Horizontal, (float)(slideSize.getHeight() / 2) + 12.5f);

     pres.save("DrawingGuides_out.pptx", SaveFormat.Pptx);
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: IDrawingGuidesCollection