public final class Slide extends BaseSlide implements ISlide
Represents a slide in a presentation.
| Modifier and Type | Method and Description |
|---|---|
ISlideHeaderFooterManager |
getHeaderFooterManager()
Returns HeaderFooter manager of the slide.
|
boolean |
getHidden()
Determines whether the specified slide is hidden during a slide show.
|
ILayoutSlide |
getLayoutSlide()
Returns or sets the layout slide for the current slide.
|
INotesSlideManager |
getNotesSlideManager()
Allow to access notes slide, add and remove it.
|
boolean |
getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
|
IComment[] |
getSlideComments(ICommentAuthor author)
Returns all slide comments added by specific author.
|
int |
getSlideNumber()
Returns a number of slide.
|
IOverrideThemeManager |
getThemeManager()
Returns the overriding theme manager.
|
java.awt.image.BufferedImage |
getThumbnail()
Returns a Thumbnail Image object (20% of real size).
|
java.awt.image.BufferedImage |
getThumbnail(java.awt.Dimension imageSize)
Returns a Thumbnail Bitmap object with specified size.
|
java.awt.image.BufferedImage |
getThumbnail(float scaleX,
float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
|
java.awt.image.BufferedImage |
getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting)
Deprecated.
Use Slide.getThumbnail(IRenderingOptions) instead. The method will be removed after release of version 21.4.
|
java.awt.image.BufferedImage |
getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting,
java.awt.Dimension imageSize)
Deprecated.
Use Slide.getThumbnail(IRenderingOptions) instead. The method will be removed after release of version 21.4.
|
java.awt.image.BufferedImage |
getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting,
float scaleX,
float scaleY)
Deprecated.
Use Slide.getThumbnail(IRenderingOptions, float, float) instead. The method will be removed after release of version 21.4.
|
java.awt.image.BufferedImage |
getThumbnail(IRenderingOptions options)
Returns a Thumbnail BufferedImage object.
|
java.awt.image.BufferedImage |
getThumbnail(IRenderingOptions options,
java.awt.Dimension imageSize)
Returns a Thumbnail BufferedImage object with specified size.
|
java.awt.image.BufferedImage |
getThumbnail(IRenderingOptions options,
float scaleX,
float scaleY)
Returns a Thumbnail BufferedImage object with custom scaling.
|
java.awt.image.BufferedImage |
getThumbnail(ITiffOptions options)
Returns a Thumbnail tiff BufferedImage object with specified parameters.
|
void |
joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs in all acceptable shapes.
|
void |
remove()
Removes slide from presentation.
|
void |
renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
java.awt.Graphics2D graphics)
Deprecated.
Use Slide.renderToGraphics(IRenderingOptions, Graphics) instead. The method will be removed after release of version 21.4.
|
void |
renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
java.awt.Graphics2D graphics,
float scale)
Deprecated.
Use Slide.renderToGraphics(IRenderingOptions, Graphics, float) instead. The method will be removed after release of version 21.4.
|
void |
renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
java.awt.Graphics2D graphics,
int width,
int height)
Deprecated.
Use Slide.renderToGraphics(IRenderingOptions, Graphics, int, int) instead. The method will be removed after release of version 21.4.
|
void |
renderToGraphics(IRenderingOptions options,
java.awt.Graphics2D graphics)
Renders certain slide to a Graphics object.
|
void |
renderToGraphics(IRenderingOptions options,
java.awt.Graphics2D graphics,
java.awt.Dimension renderingSize)
Renders certain slide to a Graphics object using specified size.
|
void |
renderToGraphics(IRenderingOptions options,
java.awt.Graphics2D graphics,
float scaleX,
float scaleY)
Renders certain slide to a Graphics object with custom scaling.
|
void |
reset()
Resets position, size and formatting of every shape that has a prototype on LayoutSlide.
|
void |
setHidden(boolean value)
Determines whether the specified slide is hidden during a slide show.
|
void |
setLayoutSlide(ILayoutSlide value)
Returns or sets the layout slide for the current slide.
|
void |
setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
|
void |
setSlideNumber(int value)
Returns a number of slide.
|
void |
writeAsSvg(java.io.OutputStream stream)
Saves content of slide as SVG file.
|
void |
writeAsSvg(java.io.OutputStream stream,
ISVGOptions svgOptions)
Saves content of slide as SVG file.
|
createThemeEffective, equals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getName, getParent_Immediate, getPresentation, getShapes, getSlide, getSlideId, getSlideShowTransition, getTimeline, joinPortionsWithSameFormatting, setNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getName, getShapes, getSlideId, getSlideShowTransition, getTimeline, setNamecreateThemeEffectivegetSlidegetPresentationpublic final ISlideHeaderFooterManager getHeaderFooterManager()
Returns HeaderFooter manager of the slide.
Read-only ISlideHeaderFooterManager.
getHeaderFooterManager in interface ISlidepublic final IOverrideThemeManager getThemeManager()
Returns the overriding theme manager.
Read-only IOverrideThemeManager.
getThemeManager in interface IOverrideThemeablepublic final int getSlideNumber()
Returns a number of slide.
Index of slide in (Presentation.getSlides()) collection is always equal to SlideNumber - Presentation.FirstSlideNumber.
Read/write int.
getSlideNumber in interface ISlidepublic final void setSlideNumber(int value)
Returns a number of slide.
Index of slide in (Presentation.getSlides()) collection is always equal to SlideNumber - Presentation.FirstSlideNumber.
Read/write int.
setSlideNumber in interface ISlidepublic final boolean getHidden()
Determines whether the specified slide is hidden during a slide show.
Read/write boolean.
public final void setHidden(boolean value)
Determines whether the specified slide is hidden during a slide show.
Read/write boolean.
public boolean getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
Read/write boolean.
getShowMasterShapes in interface IBaseSlidegetShowMasterShapes in class BaseSlidepublic void setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
Read/write boolean.
setShowMasterShapes in interface IBaseSlidesetShowMasterShapes in class BaseSlidepublic final java.awt.image.BufferedImage getThumbnail(float scaleX,
float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
getThumbnail in interface ISlidescaleX - The value by which to scale this Thumbnail in the x-axis direction.scaleY - The value by which to scale this Thumbnail in the y-axis direction.public final java.awt.image.BufferedImage getThumbnail()
Returns a Thumbnail Image object (20% of real size).
getThumbnail in interface ISlideBufferedImagepublic final java.awt.image.BufferedImage getThumbnail(java.awt.Dimension imageSize)
Returns a Thumbnail Bitmap object with specified size.
getThumbnail in interface ISlideimageSize - Size of the image to create.public final java.awt.image.BufferedImage getThumbnail(ITiffOptions options)
Returns a Thumbnail tiff BufferedImage object with specified parameters.
getThumbnail in interface ISlideoptions - Tiff options.com.aspose.ms.System.InvalidOperationException - Thrown when options.NotesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull.@Deprecated public final java.awt.image.BufferedImage getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting)
Returns a Thumbnail BufferedImage object.
getThumbnail in interface ISlidenotesCommentsLayouting - Options for notes and comments layouting.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull@Deprecated public final java.awt.image.BufferedImage getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting, float scaleX, float scaleY)
Returns a Thumbnail BufferedImage object with custom scaling.
getThumbnail in interface ISlidenotesCommentsLayouting - Options for notes and comments layouting.scaleX - The value by which to scale this Thumbnail in the x-axis direction.scaleY - The value by which to scale this Thumbnail in the y-axis direction.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull@Deprecated public final java.awt.image.BufferedImage getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting, java.awt.Dimension imageSize)
Returns a Thumbnail BufferedImage object with specified size.
getThumbnail in interface ISlidenotesCommentsLayouting - Options for notes and comments layouting.imageSize - Size of the image to create.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final java.awt.image.BufferedImage getThumbnail(IRenderingOptions options)
Returns a Thumbnail BufferedImage object.
getThumbnail in interface ISlideoptions - Rendering options.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final java.awt.image.BufferedImage getThumbnail(IRenderingOptions options, float scaleX, float scaleY)
Returns a Thumbnail BufferedImage object with custom scaling.
getThumbnail in interface ISlideoptions - Rendering options.scaleX - The value by which to scale this Thumbnail in the x-axis direction.scaleY - The value by which to scale this Thumbnail in the y-axis direction.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final java.awt.image.BufferedImage getThumbnail(IRenderingOptions options, java.awt.Dimension imageSize)
Returns a Thumbnail BufferedImage object with specified size.
getThumbnail in interface ISlideoptions - Rendering options.imageSize - Size of the image to create.com.aspose.ms.System.InvalidOperationException - Thrown when options.NotesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull@Deprecated public final void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting, java.awt.Graphics2D graphics, int width, int height)
Renders certain slide to a Graphics object using specified size.
renderToGraphics in interface ISlidenotesCommentsLayouting - Options for notes and comments layouting.graphics - The object where to render to.width - The maximum width (in pixels) that can be occupied by the rendered slide.height - The maximum height (in pixels) that can be occupied by the rendered slide.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull@Deprecated public final void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting, java.awt.Graphics2D graphics, float scale)
Renders certain slide to a Graphics object using specified scale.
renderToGraphics in interface ISlidenotesCommentsLayouting - Options for notes and comments layouting.graphics - The object where to render to.scale - The scale for rendering the slide (1.0 is 100%).com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull@Deprecated public final void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting, java.awt.Graphics2D graphics)
Renders certain slide to a Graphics object.
renderToGraphics in interface ISlidenotesCommentsLayouting - Options for notes and comments layouting.graphics - The object where to render to.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final void renderToGraphics(IRenderingOptions options, java.awt.Graphics2D graphics)
Renders certain slide to a Graphics object.
renderToGraphics in interface ISlideoptions - Rendering options.graphics - The object where to render to.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final void renderToGraphics(IRenderingOptions options, java.awt.Graphics2D graphics, float scaleX, float scaleY)
Renders certain slide to a Graphics object with custom scaling.
renderToGraphics in interface ISlideoptions - Rendering options.graphics - The object where to render to.scaleX - The scale for rendering the slide (1.0 is 100%) in the x-axis direction.scaleY - The scale for rendering the slide (1.0 is 100%) in the y-axis direction.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final void renderToGraphics(IRenderingOptions options, java.awt.Graphics2D graphics, java.awt.Dimension renderingSize)
Renders certain slide to a Graphics object using specified size.
renderToGraphics in interface ISlideoptions - Rendering options.graphics - The object where to render to.renderingSize - The maximum dimensions (in pixels) that can be occupied by the rendered slide.com.aspose.ms.System.InvalidOperationException - Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final void writeAsSvg(java.io.OutputStream stream)
Saves content of slide as SVG file.
writeAsSvg in interface ISlidestream - Target streampublic final void writeAsSvg(java.io.OutputStream stream,
ISVGOptions svgOptions)
Saves content of slide as SVG file.
writeAsSvg in interface ISlidestream - Target streamsvgOptions - SVG generation optionspublic final void remove()
Removes slide from presentation.
remove in interface ISlidePptxEditException - Thrown if slide is already removed from presentation.public final ILayoutSlide getLayoutSlide()
Returns or sets the layout slide for the current slide.
Read/write ILayoutSlide.
getLayoutSlide in interface ISlidepublic final void setLayoutSlide(ILayoutSlide value)
Returns or sets the layout slide for the current slide.
Read/write ILayoutSlide.
setLayoutSlide in interface ISlidepublic final void reset()
Resets position, size and formatting of every shape that has a prototype on LayoutSlide.
public final INotesSlideManager getNotesSlideManager()
Allow to access notes slide, add and remove it.
Read-only INotesSlideManager.
getNotesSlideManager in interface ISlidepublic final IComment[] getSlideComments(ICommentAuthor author)
Returns all slide comments added by specific author.
getSlideComments in interface ISlideauthor - Author of comments to find or null to return all comments.Comment.public void joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs in all acceptable shapes.
joinPortionsWithSameFormatting in interface IBaseSlidejoinPortionsWithSameFormatting in class BaseSlideCopyright © 2004-2022 Aspose Pty Ltd. All Rights Reserved.