[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the index number for a visible page within all of the visible pages.
Source position: comctrls.pp line 265
public function TCustomPage.VisibleIndex: Integer; virtual; |
Ordinal position for the visible page, or -1 when not found or not visible.
VisibleIndex is an Integer function used to get the ordinal position for the page instance within the list of visible pages for the Parent control.
When Parent is a TCustomTabControl descendant, its TCustomPage instances are examined to find the current class instance. At run-time, only pages with the TabVisible property set to True are considered in the method. At design-time, all pages are examined.
The return value is the relative position in the list of visible pages where the current class instance was found. The return value is -1 if the current page was not found in the Parent control, or when none of the pages in the Parent control are visible.
When Parent is not derived from TCustomTabControl, the return value is always -1.
Version 4.0 | Generated 2025-05-03 | Home |