ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / FindElements Method
The names of the elements to find. Cannot be null.
Example

In This Topic
    FindElements Method (Report)
    In This Topic
    Finds the elements with the given names on the report.
    Syntax

    Parameters

    elementNames
    The names of the elements to find. Cannot be null.

    Return Value

    A IList or an empty list if no elements are found
    Exceptions
    ExceptionDescription
    Value cannot be null: elementNames
    Remarks
    Find recurses nested groups to find the given elements.
    Example
    Find specific elements in the report based on their Name.
    var reportElementsToFind = new List<string> { "ReportText1", "ReportText2" };
    var textReportElements = report.FindElements(reportElementsToFind);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also