[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomPage.IsControlVisible

Indicates whether the control is visible.

## Declaration

Source position: comctrls.pp line 263

`public function TCustomPage.IsControlVisible: Boolean; override;`

## Function result

True when the control is visible.

## Description

IsControlVisible is an overridden method in TCustomPage which indicates whether the control is visible.

If AutoSizingAll is set to True, no actions are performed in the method and the return values is True. This allows inactive pages to be considered in the GetPreferredSize method in the parent control.

IsControlVisible calls the inherited method on entry to determine if the Visible property is set to True, and whether the control is visible at design-time. When the Parent control is TCustomTabControl, the value in the PageIndex property must match the value in the parent control.

The return value is True when all of the conditions are satisfied.

## See also

TCustomPage.PageIndex |  | Ordinal position for the page in the parent control.
TCustomTabControl.PageIndex |  | Ordinal position for the selected page on the tabbed control.
TControl.IsControlVisible |  | True if the control is Visible, or is in design mode.