Skip to content

ContextMenuPresent Property

Description

Gets/Sets whether a command to hide/show the command bar is added to the context menu that is displayed when you right-click on any command bar. By default, all command bars are added to the context menu.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property ContextMenuPresent() As Boolean

Example

This sample code illustrates how to remove the first and third command bars from the popup context menu that allows you to hide the command bars.

' This will remove the 1st and 3rd CommandBars from the ContextMenu
CommandBars(1).ContextMenuPresent = False
CommandBars(3).ContextMenuPresent = False

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.