Compartir a través de


IVsToolWindowToolbar.SetBorderSpace Method

Sets the border space for a tool window after the toolbar is placed.

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

Syntax

'Declaration
Function SetBorderSpace ( _
    pbw As RECT() _
) As Integer
int SetBorderSpace(
    RECT[] pbw
)
int SetBorderSpace(
    [InAttribute] array<RECT>^ pbw
)
abstract SetBorderSpace : 
        pbw:RECT[] -> int
function SetBorderSpace(
    pbw : RECT[]
) : int

Parameters

Return Value

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

Remarks

This method returns the coordinates of the usable area in the specified RECT after the toolbar is placed.

COM Signature

From vsshell.idl:

HRESULT IVsToolWindowToolbar::SetBorderSpace(
   [in] LPCBORDERWIDTHS pbw
);

.NET Framework Security

See Also

Reference

IVsToolWindowToolbar Interface

Microsoft.VisualStudio.Shell.Interop Namespace