IVsProfferCommands3.AddCommandBar(String, UInt32, Object, UInt32, Object) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Adiciona uma barra de comandos à interface do usuário.
public:
int AddCommandBar(System::String ^ pszCmdBarName, System::UInt32 dwType, System::Object ^ pCmdBarParent, System::UInt32 dwIndex, [Runtime::InteropServices::Out] System::Object ^ % ppCmdBar);
int AddCommandBar(std::wstring const & pszCmdBarName, unsigned int dwType, winrt::Windows::Foundation::IInspectable const & pCmdBarParent, unsigned int dwIndex, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppCmdBar);
public int AddCommandBar (string pszCmdBarName, uint dwType, object pCmdBarParent, uint dwIndex, out object ppCmdBar);
abstract member AddCommandBar : string * uint32 * obj * uint32 * obj -> int
Public Function AddCommandBar (pszCmdBarName As String, dwType As UInteger, pCmdBarParent As Object, dwIndex As UInteger, ByRef ppCmdBar As Object) As Integer
Parâmetros
- pszCmdBarName
- String
no O nome da barra de comandos.
- dwType
- UInt32
no Um valor da vsCommandBarType enumeração.
- pCmdBarParent
- Object
no O pai da barra de comandos. Use null para uma barra de comandos de nível superior.
- dwIndex
- UInt32
no Local (índice) no qual inserir a nova barra de comandos no pai.
- ppCmdBar
- Object
fora A nova barra de comandos.
Retornos
Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.