共用方式為


RibbonBase.StartFromScratch Property

Definition

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.

public:
 property bool StartFromScratch { bool get(); void set(bool value); };
public bool StartFromScratch { get; set; }
member this.StartFromScratch : bool with get, set
Public Property StartFromScratch As Boolean

Property Value

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.

Applies to