SlideUtil
SlideUtil class
Offer methods which help to search shapes and text in a presentation.
SlideUtil
Name | Description |
---|
SlideUtil() | |
Returns:
SlideUtil
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | Slide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | MasterSlide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | LayoutSlide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | MasterHandoutSlide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | NotesSlide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | BaseSlide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | MasterNotesSlide | Parent slide. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | Slide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | MasterSlide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | LayoutSlide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | MasterHandoutSlide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | NotesSlide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | BaseSlide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
slide | MasterNotesSlide | Parent slide. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
groupShape | GroupShape | Parent group shape. |
alignShapes
Name | Description |
---|
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:
Name | Type | Description |
---|
alignmentType | int | Determines which type of alignment will be applied. |
alignToSlide | boolean | If true, shapes will be aligned relative to the slide edges. |
groupShape | GroupShape | Parent group shape. |
shapeIndexes | int[] | Indexes of shapes to be aligned. |
findAndReplaceText
Name | Description |
---|
findAndReplaceText(Presentation, boolean, String, String) | Finds and replaces text in presentation with given format |
Parameters:
Name | Type | Description |
---|
presentation | Presentation | Scanned presentation. |
withMasters | boolean | Determines whether master slides should be scanned. |
find | String | String value to find. |
replace | String | String value to replace. character of the found string |
findAndReplaceText
Name | Description |
---|
findAndReplaceText(Presentation, boolean, String, String, PortionFormat) | Finds and replaces text in presentation with given format |
Parameters:
Name | Type | Description |
---|
presentation | Presentation | Scanned presentation. |
withMasters | boolean | Determines whether master slides should be scanned. |
find | String | String value to find. |
replace | String | String value to replace. |
format | PortionFormat | Format for replacing text portion. If null then will be used format of the first character of the found string |
findShape
Name | Description |
---|
findShape(Presentation, String) | Find shape by alternative text in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
pres | Presentation | Scanned presentation. |
altText | String | Alternative 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
Name | Description |
---|
findShape(Slide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | Slide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
findShape(MasterSlide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | MasterSlide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
findShape(LayoutSlide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | LayoutSlide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
findShape(MasterHandoutSlide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | MasterHandoutSlide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
findShape(NotesSlide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | NotesSlide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
findShape(BaseSlide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | BaseSlide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
findShape(MasterNotesSlide, String) | Find shape by alternative text on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | MasterNotesSlide | Scanned slide. |
altText | String | Alternative 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
Name | Description |
---|
getAllTextBoxes(Slide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | Slide | Scanned slide. |
Returns:
TextFrame
getAllTextBoxes
Name | Description |
---|
getAllTextBoxes(MasterSlide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Returns:
TextFrame
getAllTextBoxes
Name | Description |
---|
getAllTextBoxes(LayoutSlide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Returns:
TextFrame
getAllTextBoxes
Name | Description |
---|
getAllTextBoxes(MasterHandoutSlide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Returns:
TextFrame
getAllTextBoxes
Name | Description |
---|
getAllTextBoxes(NotesSlide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Returns:
TextFrame
getAllTextBoxes
Name | Description |
---|
getAllTextBoxes(BaseSlide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
slide | BaseSlide | Scanned slide. |
Returns:
TextFrame
getAllTextBoxes
Name | Description |
---|
getAllTextBoxes(MasterNotesSlide) | Returns all text frames on a slide in a PPTX presentation. |
Parameters:
Returns:
TextFrame
getAllTextFrames
Name | Description |
---|
getAllTextFrames(Presentation, boolean) | Returns all text frames in a PPTX presentation. |
Parameters:
Name | Type | Description |
---|
pres | Presentation | Scanned presentation. |
withMasters | boolean | Determines whether master slides should be scanned. |
Returns:
TextFrame