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.
|
android.graphics.Bitmap |
getThumbnail()
Returns a Thumbnail Image object (20% of real size).
|
android.graphics.Bitmap |
getThumbnail(float scaleX,
float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
|
android.graphics.Bitmap |
getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting)
Returns a Thumbnail Bitmap object.
|
android.graphics.Bitmap |
getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting,
float scaleX,
float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
|
android.graphics.Bitmap |
getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting,
Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
|
android.graphics.Bitmap |
getThumbnail(ITiffOptions options)
Returns a Thumbnail tiff bitmap object with specified parameters.
|
android.graphics.Bitmap |
getThumbnail(Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
|
void |
joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs in all acceptable shapes.
|
void |
remove()
Removes slide from presentation.
|
void |
renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
android.graphics.Canvas graphics)
Renders certain slide to a Graphics object.
|
void |
renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
android.graphics.Canvas graphics,
float scale)
Renders certain slide to a Graphics object using specified scale.
|
void |
renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting,
android.graphics.Canvas graphics,
int width,
int height)
Renders certain slide to a Graphics object using specified size.
|
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.
|
createBackgroundEffective, createThemeEffective, equals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getName, getParent_Immediate, getPresentation, getShapes, getSlide, getSlideId, getSlideShowTransition, getTimeline, joinPortionsWithSameFormatting, setName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBackgroundEffective, equals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getName, getShapes, getSlideId, getSlideShowTransition, getTimeline, setName
createThemeEffective
getSlide
getPresentation
public final ISlideHeaderFooterManager getHeaderFooterManager()
Returns HeaderFooter manager of the slide.
Read-only ISlideHeaderFooterManager
.
getHeaderFooterManager
in interface ISlide
public final IOverrideThemeManager getThemeManager()
Returns the overriding theme manager.
Read-only IOverrideThemeManager
.
getThemeManager
in interface IOverrideThemeable
public final int getSlideNumber()
Returns a number of slide.
Index of slide in Presentation.Slides
(Presentation.getSlides()
) collection is always equal to SlideNumber - Presentation.FirstSlideNumber.
Read/write int
.
getSlideNumber
in interface ISlide
public final void setSlideNumber(int value)
Returns a number of slide.
Index of slide in Presentation.Slides
(Presentation.getSlides()
) collection is always equal to SlideNumber - Presentation.FirstSlideNumber.
Read/write int
.
setSlideNumber
in interface ISlide
public 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 IBaseSlide
getShowMasterShapes
in class BaseSlide
public void setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
Read/write boolean
.
setShowMasterShapes
in interface IBaseSlide
setShowMasterShapes
in class BaseSlide
public final android.graphics.Bitmap getThumbnail(float scaleX, float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
getThumbnail
in interface ISlide
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.public final android.graphics.Bitmap getThumbnail()
Returns a Thumbnail Image object (20% of real size).
getThumbnail
in interface ISlide
public final android.graphics.Bitmap getThumbnail(Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
getThumbnail
in interface ISlide
imageSize
- Size of the image to create.public final android.graphics.Bitmap getThumbnail(ITiffOptions options)
Returns a Thumbnail tiff bitmap object with specified parameters.
getThumbnail
in interface ISlide
options
- Tiff options.public final android.graphics.Bitmap getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting)
Returns a Thumbnail Bitmap object.
getThumbnail
in interface ISlide
notesCommentsLayouting
- Options for notes and comments layouting.com.aspose.ms.System.InvalidOperationException
- Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFullpublic final android.graphics.Bitmap getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting, float scaleX, float scaleY)
Returns a Thumbnail Bitmap object with custom scaling.
getThumbnail
in interface ISlide
notesCommentsLayouting
- 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.BottomFullpublic final android.graphics.Bitmap getThumbnail(INotesCommentsLayoutingOptions notesCommentsLayouting, Size imageSize)
Returns a Thumbnail Bitmap object with specified size.
getThumbnail
in interface ISlide
notesCommentsLayouting
- 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 void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting, android.graphics.Canvas graphics, int width, int height)
Renders certain slide to a Graphics object using specified size.
renderToGraphics
in interface ISlide
notesCommentsLayouting
- 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.BottomFullpublic final void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting, android.graphics.Canvas graphics, float scale)
Renders certain slide to a Graphics object using specified scale.
renderToGraphics
in interface ISlide
notesCommentsLayouting
- 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.BottomFullpublic final void renderToGraphics(INotesCommentsLayoutingOptions notesCommentsLayouting, android.graphics.Canvas graphics)
Renders certain slide to a Graphics object.
renderToGraphics
in interface ISlide
notesCommentsLayouting
- 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 writeAsSvg(java.io.OutputStream stream)
Saves content of slide as SVG file.
writeAsSvg
in interface ISlide
stream
- Target streampublic final void writeAsSvg(java.io.OutputStream stream, ISVGOptions svgOptions)
Saves content of slide as SVG file.
writeAsSvg
in interface ISlide
stream
- Target streamsvgOptions
- SVG generation optionspublic final void remove()
Removes slide from presentation.
remove
in interface ISlide
PptxEditException
- 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 ISlide
public final void setLayoutSlide(ILayoutSlide value)
Returns or sets the layout slide for the current slide.
Read/write ILayoutSlide
.
setLayoutSlide
in interface ISlide
public 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 ISlide
public final IComment[] getSlideComments(ICommentAuthor author)
Returns all slide comments added by specific author.
getSlideComments
in interface ISlide
author
- 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 IBaseSlide
joinPortionsWithSameFormatting
in class BaseSlide