SlideUtil

SlideUtil class

Offer methods which help to search shapes and text in a presentation.

SlideUtil

NameDescription
SlideUtil()

Returns: SlideUtil


alignShapes

NameDescription
alignShapes(int, boolean, Slide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, MasterSlide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideMasterSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, LayoutSlide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideLayoutSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, MasterHandoutSlide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideMasterHandoutSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, NotesSlide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideNotesSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, BaseSlide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideBaseSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, MasterNotesSlide)Changes the placement of all shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideMasterNotesSlideParent slide.

alignShapes

NameDescription
alignShapes(int, boolean, Slide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, MasterSlide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideMasterSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, LayoutSlide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideLayoutSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, MasterHandoutSlide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideMasterHandoutSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, NotesSlide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideNotesSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, BaseSlide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideBaseSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, MasterNotesSlide, int[])Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
slideMasterNotesSlideParent slide.
shapeIndexesint[]Indexes of shapes to be aligned.

alignShapes

NameDescription
alignShapes(int, boolean, GroupShape)Changes the placement of all shapes within group shape. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
groupShapeGroupShapeParent group shape.

alignShapes

NameDescription
alignShapes(int, boolean, GroupShape, int[])Changes the placement of selected shapes within group shape. Aligns shapes to the margins or the edge of the slide or align them relative to each other.

Parameters:

NameTypeDescription
alignmentTypeintDetermines which type of alignment will be applied.
alignToSlidebooleanIf true, shapes will be aligned relative to the slide edges.
groupShapeGroupShapeParent group shape.
shapeIndexesint[]Indexes of shapes to be aligned.

findAndReplaceText

NameDescription
findAndReplaceText(Presentation, boolean, String, String)Finds and replaces text in presentation with given format

Parameters:

NameTypeDescription
presentationPresentationScanned presentation.
withMastersbooleanDetermines whether master slides should be scanned.
findStringString value to find.
replaceStringString value to replace. character of the found string

findAndReplaceText

NameDescription
findAndReplaceText(Presentation, boolean, String, String, PortionFormat)Finds and replaces text in presentation with given format

Parameters:

NameTypeDescription
presentationPresentationScanned presentation.
withMastersbooleanDetermines whether master slides should be scanned.
findStringString value to find.
replaceStringString value to replace.
formatPortionFormatFormat for replacing text portion. If null then will be used format of the first character of the found string

findShape

NameDescription
findShape(Presentation, String)Find shape by alternative text in a PPTX presentation.

Parameters:

NameTypeDescription
presPresentationScanned presentation.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(Slide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(MasterSlide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideMasterSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(LayoutSlide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideLayoutSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(MasterHandoutSlide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideMasterHandoutSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(NotesSlide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideNotesSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(BaseSlide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideBaseSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


findShape

NameDescription
findShape(MasterNotesSlide, String)Find shape by alternative text on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideMasterNotesSlideScanned slide.
altTextStringAlternative text of a shape.

Returns: Table, Chart, Shape, SectionZoomFrame, AutoShape, GeometryShape, Connector, ZoomObject, SummaryZoomSection, VideoFrame, AudioFrame, PictureFrame, Ink, ZoomFrame, SmartArtShape, LegacyDiagram, SummaryZoomFrame, GroupShape, GraphicalObject, SmartArt, OleObjectFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(Slide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideSlideScanned slide.

Returns: TextFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(MasterSlide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideMasterSlideScanned slide.

Returns: TextFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(LayoutSlide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideLayoutSlideScanned slide.

Returns: TextFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(MasterHandoutSlide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideMasterHandoutSlideScanned slide.

Returns: TextFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(NotesSlide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideNotesSlideScanned slide.

Returns: TextFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(BaseSlide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideBaseSlideScanned slide.

Returns: TextFrame


getAllTextBoxes

NameDescription
getAllTextBoxes(MasterNotesSlide)Returns all text frames on a slide in a PPTX presentation.

Parameters:

NameTypeDescription
slideMasterNotesSlideScanned slide.

Returns: TextFrame


getAllTextFrames

NameDescription
getAllTextFrames(Presentation, boolean)Returns all text frames in a PPTX presentation.

Parameters:

NameTypeDescription
presPresentationScanned presentation.
withMastersbooleanDetermines whether master slides should be scanned.

Returns: TextFrame