共用方式為


RibbonControl.Visible Property

Definition

Gets or sets a value that indicates whether this RibbonControl is visible.

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

Property Value

true if the RibbonControl is visible; otherwise, false. Default is true.

Remarks

Controls that have their Visible properties set to false do not appear on the Ribbon. If they have been added to the Quick Access Toolbar, they remain visible even if this property is set to false.

Applies to