PDF4Java Reference Documentation
com.o2sol.pdf4java.core.cos Package / PDFCosArray Class / indexOf Method
The object to locate in the array.
Collapse All Expand All
In This Topic

indexOf Method
In This Topic
Searches for the specified object and returns the zero-based index of the first occurrence within the entire array.
Syntax

    public int indexOf(
       PDFCosObject obj
    )

#### Parameters

obj
  The object to locate in the array.

#### Return Value

The zero-based index of the first occurrence of item within the entire array, if found; otherwise, –1.
See Also

#### Reference

PDFCosArray Class
PDFCosArray Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.