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

# TMenuItem.Visible

Indicates whether the menu item is visible (True) or hidden (False).

## Declaration

Source position: menus.pp line 349

`published property TMenuItem.Visible : Boolean read FVisible write SetVisible stored IsVisibleStored default True;`

## Description

Visible is a Boolean property which determines whether the menu item is visible on its Menu or on a sub-menu for a Parent menu item. The default value for the property is True.

Changing the value for the property causes a Parent or MergedParent menu to redrawn at run-time, and the affected widget is notified of the change in visibility.

## See also

TMenuItem.VisibleIndexOf |  | Gets the ordinal position for the specified menu item in the list of visible menu items.
TMenuItem.Parent |  | The parent menu item for the class instance.
TMenuItem.MergedParent |  | The parent menu item for the class instance taking the merged menu into account.
TMergedMenuItems.VisibleItems |  | Provides indexed access to the visible menu items in the list of merged menu items.
TMergedMenuItems.VisibleCount |  | Number of visible menu items in the internal list.
TMergedMenuItems.InvisibleItems |  | Provides indexed access to the invisible (hidden) menu items in the list of merged menu items.
TMergedMenuItems.InvisibleCount |  | Number of invisible (hidden) menu items in the internal list.