GetTextBoxesContainsText

SlideUtil.GetTextBoxesContainsText method

Returns all text frames on the specified slide that contain the given text.

public static ITextFrame[] GetTextBoxesContainsText(IBaseSlide slide, string text, 
    bool checkPlaceholderText)
ParameterTypeDescription
slideIBaseSlideThe slide to search.
textStringThe text to search for within text frames.
checkPlaceholderTextBooleanIndicates whether to include text frames that are empty, but whose placeholder text contains the search text.

Return Value

An array of ITextFrame objects that contain the specified text.

See Also