Function TabControl.tabIndex

get tab index by tab id (-1 if not found)

int tabIndex(
  string id
);