CommandBar.Visible 属性

定义

确定命令栏是否可见。

public:
 property bool Visible { bool get(); void set(bool value); };
public:
 property bool Visible { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(1610874910)]
public bool Visible { [System.Runtime.InteropServices.DispId(1610874910)] get; [System.Runtime.InteropServices.DispId(1610874910)] set; }
[<System.Runtime.InteropServices.DispId(1610874910)>]
[<get: System.Runtime.InteropServices.DispId(1610874910)>]
[<set: System.Runtime.InteropServices.DispId(1610874910)>]
member this.Visible : bool with get, set
Public Property Visible As Boolean

属性值

Boolean

true 如果命令栏可见,则为; 否则为 fals e。

属性

注解

如果更改菜单栏或禁用的命令栏的可见性,则此属性将引发 InvalidOperationException

适用于