Partilhar via


OfficeRibbon.StartFromScratch Property

Gets or sets a value that indicates whether to hide all built-in tabs on the Ribbon and most commands on the Microsoft Office Menu and display only the customizations that are defined in this Ribbon item.

Namespace:  Microsoft.Office.Tools.Ribbon
Assemblies:   Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

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

Property Value

Type: System.Boolean
true if the Ribbon displays only the customizations that are defined in this Ribbon item; otherwise, false. The default is false.

Remarks

This property can be set only before the Ribbon is loaded into the Office application. For information about setting this property, see Ribbon Object Model Overview.

You cannot change the visibility of custom tabs at run time if this property is set to true.

.NET Framework Security

See Also

Reference

OfficeRibbon Interface

Microsoft.Office.Tools.Ribbon Namespace