Vcl.Menus.TMenuItem.Visible

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Visible: Boolean read FVisible write SetVisible stored IsVisibleStored default True;

C++

__property bool Visible = {read=FVisible, write=SetVisible, stored=IsVisibleStored, default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Specifies whether the menu item appears in the menu.

Use Visible to prevent the user from seeing an item in the menu. For example, remove menu items that do not apply to the current component of a pop-up menu in an OnPopup event handler.

If Visible is true, the menu item appears. If Visible is false, the menu item is hidden.

Note: This property is not stored with the menu item if it is supplied by a TAction object.

See Also