共用方式為


CommandBarButtonClass.Style Property

Gets or sets the style of the button.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'宣告
Public Overridable Property Style As MsoButtonStyle
    Get
    Set
'用途
Dim instance As CommandBarButtonClass
Dim value As MsoButtonStyle

value = instance.Style

instance.Style = value
public virtual MsoButtonStyle Style { get; set; }
public:
virtual property MsoButtonStyle Style {
    MsoButtonStyle get ();
    void set (MsoButtonStyle value);
}
abstract Style : MsoButtonStyle with get, set
override Style : MsoButtonStyle with get, set
function get Style () : MsoButtonStyle
function set Style (value : MsoButtonStyle)

Property Value

Type: Microsoft.VisualStudio.CommandBars.MsoButtonStyle
The MsoButtonStyle.

Implements

_CommandBarButton.Style

.NET Framework Security

See Also

Reference

CommandBarButtonClass Class

CommandBarButtonClass Members

Microsoft.VisualStudio.CommandBars Namespace