Freigeben über


IVsDefaultButtonBarImages.GetButtonCount-Methode

Gibt die Anzahl der Schaltflächen in Buttonbarzurück.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Function GetButtonCount ( _
    <OutAttribute> ByRef pcButtons As Integer _
) As Integer
int GetButtonCount(
    out int pcButtons
)
int GetButtonCount(
    [OutAttribute] int% pcButtons
)
abstract GetButtonCount : 
        pcButtons:int byref -> int
function GetButtonCount(
    pcButtons : int
) : int

Parameter

  • pcButtons
    Typ: Int32%

    [out] Anzahl von Schaltflächen.

Rückgabewert

Typ: Int32
Wenn die Methode erfolgreich ausgeführt, gibt sie S_OKzurück.Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Von textmgr.idl:

HRESULT IVsDefaultButtonBarImages::GetButtonCount(
   [out] long *pcButtons
);

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDefaultButtonBarImages Schnittstelle

Microsoft.VisualStudio.TextManager.Interop-Namespace