共用方式為


CommandBarControls.Add Method

Adds a command bar control with the given characteristics.

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

Syntax

'宣告
Function Add ( _
    Type As Object, _
    Id As Object, _
    Parameter As Object, _
    Before As Object, _
    Temporary As Object _
) As CommandBarControl
'用途
Dim instance As CommandBarControls
Dim Type As Object
Dim Id As Object
Dim Parameter As Object
Dim Before As Object
Dim Temporary As Object
Dim returnValue As CommandBarControl

returnValue = instance.Add(Type, Id, Parameter, _
    Before, Temporary)
CommandBarControl Add(
    Object Type,
    Object Id,
    Object Parameter,
    Object Before,
    Object Temporary
)
CommandBarControl^ Add(
    [InAttribute] Object^ Type, 
    [InAttribute] Object^ Id, 
    [InAttribute] Object^ Parameter, 
    [InAttribute] Object^ Before, 
    [InAttribute] Object^ Temporary
)
abstract Add : 
        Type:Object * 
        Id:Object * 
        Parameter:Object * 
        Before:Object * 
        Temporary:Object -> CommandBarControl 
function Add(
    Type : Object, 
    Id : Object, 
    Parameter : Object, 
    Before : Object, 
    Temporary : Object
) : CommandBarControl

Parameters

  • Before
    Type: System.Object
    The index of the control before which to add this control.
  • Temporary
    Type: System.Object
    true if the control is temporary, otherwise false.

Return Value

Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The T[:Microsoft.VisualStudio.CommandBars.CommandBarControl].

.NET Framework Security

See Also

Reference

CommandBarControls Interface

CommandBarControls Members

Microsoft.VisualStudio.CommandBars Namespace