public interface ICommonSlideViewProperties
Represents common slide view properties.
| Modifier and Type | Method and Description |
|---|---|
IDrawingGuidesCollection |
getDrawingGuides()
Returns the collection of the drawing guides.
|
int |
getScale()
Specifies the view scaling ratio in percentages.
|
boolean |
getVariableScale()
Specifies that the view content should automatically scale to best fit the current window size.
|
void |
setScale(int value)
Specifies the view scaling ratio in percentages.
|
void |
setVariableScale(boolean value)
Specifies that the view content should automatically scale to best fit the current window size.
|
int getScale()
Specifies the view scaling ratio in percentages.
Read/write int.
com.aspose.ms.System.ArgumentOutOfRangeException - Throws when value less than zero.void setScale(int value)
Specifies the view scaling ratio in percentages.
Read/write int.
com.aspose.ms.System.ArgumentOutOfRangeException - Throws when value less than zero.boolean getVariableScale()
Specifies that the view content should automatically scale to best fit the current window size.
Read/write boolean.
void setVariableScale(boolean value)
Specifies that the view content should automatically scale to best fit the current window size.
Read/write boolean.
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(); }
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.