IndexOf()

SummaryZoomSectionCollection::IndexOf(System::SharedPtr<ISummaryZoomSection>) method

Returns an index of the specified SummaryZoomSection object.

int32_t Aspose::Slides::SummaryZoomSectionCollection::IndexOf(System::SharedPtr<ISummaryZoomSection> summaryZoomSection) override

Arguments

ParameterTypeDescription
summaryZoomSectionSystem::SharedPtr<ISummaryZoomSection>SummaryZoomSection object to find ISummaryZoomSection.

Return Value

Index of a SummaryZoomSection object or -1 if SummaryZoomSection object not from this collection.

Remarks

The example demonstrates getting Summary Zoom Section element by index:

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
auto shapes = pres->get_Slides()->idx_get(1)->get_Shapes();

auto zoomFrame = System::ExplicitCast<ISummaryZoomFrame>(shapes->idx_get(0));
auto collection = zoomFrame->get_SummaryZoomCollection();
auto selectedObject = collection->GetSummarySection(pres->get_Sections()->idx_get(2));
int32_t idx = collection->IndexOf(selectedObject);

See Also