Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.04 KB

File metadata and controls

36 lines (23 loc) · 1.04 KB

title: binary_search method second_title: Aspose.Cells for Python via .NET API References description: type: docs weight: 30 url: /aspose.cells.pivot/pivotareacollection/binary_search/ is_root: false

binary_search {#aspose.cells.pivot.PivotArea}

Searches the entire sorted array list for an element using the default comparer and returns the zero-based index of the element.

Returns

The zero-based index of value in the sorted array list, if item is found; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of array list Count.

def binary_search(self, item):
    ...
Parameter Type Description
item PivotArea The System.Object to locate. The value can be null.

See Also