Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTabControl.IndexOfTabAt(Integer,Integer) Method

Returns the index of the tab to which the specified point belongs.

#Declaration

Delphi
function IndexOfTabAt(X: Integer; Y: Integer): Integer;

#Parameters

Name Type
X Integer
Y Integer

#Returns

Type
Integer

#Remarks

Use the IndexOfTabAt method to obtain the index of the tab located under the specified point. The X and Y parameters specify the horizontal and vertical coordinates of the point. Note that tab indexes are zero-based. If none of the tabs are under the specified point, the IndexOfTabAt method returns -1.

You can access tabs and pages by their indexes via the Tabs property (the TcxTabControl control) and the Pages property (the TcxPageControl control).

See Also