共用方式為


IVsButtonBar.GetSize Method

Gets the size of the button bar.

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

Syntax

'宣告
Function GetSize ( _
    <OutAttribute> ByRef piWidth As Integer, _
    ByRef piHeight As Integer _
) As Integer
int GetSize(
    out int piWidth,
    ref int piHeight
)
int GetSize(
    [OutAttribute] int% piWidth, 
    int% piHeight
)
abstract GetSize : 
        piWidth:int byref * 
        piHeight:int byref -> int 
function GetSize(
    piWidth : int, 
    piHeight : int
) : int

Parameters

  • piWidth
    Type: System.Int32%
    [out] The width of the button bar
  • piHeight
    Type: System.Int32%
    [ref] The height of the button bar

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsButtonBar::GetSize(
   [out] long *piWidth, long *piHeight
);

This method is called by the parent; clients need not call this unless writing another owner for the button bar.The width is a function of height.

.NET Framework Security

See Also

Reference

IVsButtonBar Interface

Microsoft.VisualStudio.TextManager.Interop Namespace