com.aspose.slides
Class SlideUtil

java.lang.Object
  extended by com.aspose.slides.SlideUtil

public class SlideUtil
extends java.lang.Object

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


Method Summary
static ShapeEx findShape(BaseSlideEx slide, java.lang.String altText)
           Find shape by alternative text on a slide in a PPTX presentation.
static ShapeEx findShape(PresentationEx pres, java.lang.String altText)
           Find shape by alternative text in a PPTX presentation.
static Shape findShape(Presentation pres, int id)
           Find shape by Id in a presentation.
static Shape findShape(Presentation pres, java.lang.String altText)
           Find shape by alternative text in a PPT presentation.
static Shape findShape(Slide slide, int id)
           Find shape by Id on a slide.
static Shape findShape(Slide slide, java.lang.String altText)
           Find shape by alternative text on a slide in a PPT presentation.
static TextFrameEx[] getAllTextBoxes(BaseSlideEx slide)
           Returns all text frames on a slide in a PPTX presentation.
static ITextBox[] getAllTextBoxes(Presentation pres, boolean withMasters)
           Returns all text boxes in a PPT presentation.
static ITextBox[] getAllTextBoxes(Slide slide)
           Returns all text boxes on a slide in a PPT presentation.
static TextFrameEx[] getAllTextFrames(PresentationEx pres, boolean withMasters)
           Returns all text frames in a PPTX presentation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findShape

public static Shape findShape(Presentation pres,
                              int id)

Find shape by Id in a presentation.

Parameters:
pres - Scanned presentation.
id - Id of a shape.
Returns:
Shape or null.

findShape

public static Shape findShape(Slide slide,
                              int id)

Find shape by Id on a slide.

Parameters:
slide - Scanned slide.
id - Id of a shape.
Returns:
Shape or null.

findShape

public static Shape findShape(Presentation pres,
                              java.lang.String altText)

Find shape by alternative text in a PPT presentation.

Parameters:
pres - Scanned presentation.
altText - Alternative text of a shape.
Returns:
Shape or null.

findShape

public static Shape findShape(Slide slide,
                              java.lang.String altText)

Find shape by alternative text on a slide in a PPT presentation.

Parameters:
slide - Scanned slide.
altText - Alternative text of a shape.
Returns:
Shape or null.

findShape

public static ShapeEx findShape(PresentationEx pres,
                                java.lang.String altText)

Find shape by alternative text in a PPTX presentation.

Parameters:
pres - Scanned presentation.
altText - Alternative text of a shape.
Returns:
Shape or null.

findShape

public static ShapeEx findShape(BaseSlideEx slide,
                                java.lang.String altText)

Find shape by alternative text on a slide in a PPTX presentation.

Parameters:
slide - Scanned slide.
altText - Alternative text of a shape.
Returns:
Shape or null.

getAllTextBoxes

public static ITextBox[] getAllTextBoxes(Presentation pres,
                                         boolean withMasters)

Returns all text boxes in a PPT presentation.

Parameters:
pres - Scanned presentation.
withMasters - Determines whether master slides should be scanned.
Returns:
Array of ITextBox objects.

getAllTextBoxes

public static ITextBox[] getAllTextBoxes(Slide slide)

Returns all text boxes on a slide in a PPT presentation.

Parameters:
slide - Scanned slide.
Returns:
Array of ITextBox objects.

getAllTextFrames

public static TextFrameEx[] getAllTextFrames(PresentationEx pres,
                                             boolean withMasters)

Returns all text frames in a PPTX presentation.

Parameters:
pres - Scanned presentation.
withMasters - Determines whether master slides should be scanned.
Returns:
Array of TextFrameEx objects.

getAllTextBoxes

public static TextFrameEx[] getAllTextBoxes(BaseSlideEx slide)

Returns all text frames on a slide in a PPTX presentation.

Parameters:
slide - Scanned slide.
Returns:
Array of TextFrameEx objects.