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.


Constructor Summary
SlideUtil()
           
 
Method Summary
static IShape findShape(IBaseSlide slide, java.lang.String altText)
           Find shape by alternative text on a slide in a PPTX presentation.
static IShape findShape(IPresentation pres, java.lang.String altText)
           Find shape by alternative text in a PPTX presentation.
static ITextFrame[] getAllTextBoxes(IBaseSlide slide)
           Returns all text frames on a slide in a PPTX presentation.
static ITextFrame[] getAllTextFrames(IPresentation 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
 

Constructor Detail

SlideUtil

public SlideUtil()
Method Detail

findShape

public static IShape findShape(IPresentation 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 IShape findShape(IBaseSlide 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 ITextFrame[] getAllTextBoxes(IBaseSlide slide)

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

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

getAllTextFrames

public static ITextFrame[] getAllTextFrames(IPresentation 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 TextFrame objects.


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.