Share via


_CommandBarButton.Visible Property

Returns or sets a value that indicates if the specified object is visible.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Visible As Boolean
    Get
    Set
'Usage
Dim instance As _CommandBarButton
Dim value As Boolean

value = instance.Visible

instance.Visible = value
bool Visible { get; set; }

Property Value

Type: System.Boolean

Implements

CommandBarControl.Visible

Remarks

Some of the content in this topic may not be applicable to some languages.

The Visible property for newly created custom command bars is False by default.

The Enabled property for a command bar must be set to True before the visible property is set to True.

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Visible Overload

Microsoft.Office.Core Namespace