Skip to main content

TcxCustomTabControl.IndexOfTabAt(Integer,Integer) Method

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

Declaration

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