Partager via


RibbonTab.Visible Property

Gets or sets a value that indicates whether the tab is visible.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Property Visible As Boolean
bool Visible { get; set; }

Property Value

Type: System.Boolean
true if the tab is visible; otherwise, false. The default is true.

Remarks

For custom tabs, the Visible property can be set at design time, or at run time before the Ribbon is loaded. To display a RibbonTab, there must be at least one visible group.

For Office built-in tabs, this property can be set only at design time.

.NET Framework Security

See Also

Reference

RibbonTab Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview