Skip to main content

TcxPageControl.FindNextPage(TcxTabSheet,Boolean,Boolean) Method

Returns the page located before or after the specified page.

Declaration

function FindNextPage(ACurrentPage: TcxTabSheet; AGoForward: Boolean; ACheckTabAccessibility: Boolean): TcxTabSheet;

Parameters

Name Type
ACurrentPage TcxTabSheet
AGoForward Boolean
ACheckTabAccessibility Boolean

Returns

Type
TcxTabSheet

Remarks

Use the FindNextPage method to obtain the TcxTabSheet object representing the page located before or after the specified page. The page starting page is specified via the CurrentPage parameter. If the GoForward parameter value is True, the next page after that specified is returned. Otherwise the FindNextPage method returns the previous page. Set the CheckTabVisible parameter to True to ignore invisible pages when searching.

If the page control has no pages or all the pages are invisible, the FindNextPage method returns nil. If the method reaches the last page when searching forward, the search is started from the first page and vice versa.

See Also