How does the API determine whether to select an inner circular surface or an outer circular surface?

Hello everyone! How does the API determine whether I choose an inner circle or an outer circle? as shown in the picture

SolidworksApi/macros