TcxPageControlProperties.FindNextPage(TcxTabSheet,Boolean,Boolean,Boolean) Method
Returns the page located before or after the specified page.
Declaration
function FindNextPage(ACurrentPage: TcxTabSheet; AGoForward: Boolean; ACheckTabAccessibility: Boolean; ACircular: Boolean): TcxTabSheet;
Parameters
Name | Type |
---|---|
ACurrentPage | TcxTabSheet |
AGoForward | Boolean |
ACheckTabAccessibility | Boolean |
ACircular | Boolean |
Returns
Type |
---|
TcxTabSheet |
Remarks
Use the FindNextPage method to obtain the TcxTabSheet object representing the page located before or after the specified page.
ACurrentPage specifies the starting page.
If AGoForward is True, the next page after ACurrentPage is returned. Otherwise the FindNextPage method returns the previous page.
Set ACheckTabVisible to True to ignore invisible pages, when searching.
ACircular specifies whether cycling between the outermost pages is allowed. If ACircular is True, when the method reaches the last page when searching forward (AGoForward is True), the search continues from the first page; the method searches from the last page, when navigating backward. If ACircular is False, the search stops when reaching these pages.
If the page control has no pages or all the pages are invisible, the FindNextPage method returns nil.