Поделиться через


RibbonBase.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
Assembly:  Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property StartFromScratch As Boolean
    Get
    Set
public 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

RibbonBase Class

Microsoft.Office.Tools.Ribbon Namespace