Share via


IVsToolWindowToolbar.GetBorder Method

Returns the border information for a tool window.

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

Syntax

'Declaration
Function GetBorder ( _
    <OutAttribute> prc As RECT() _
) As Integer
int GetBorder(
    RECT[] prc
)
int GetBorder(
    [OutAttribute] array<RECT>^ prc
)
abstract GetBorder : 
        prc:RECT[] byref -> int
function GetBorder(
    prc : RECT[]
) : int

Parameters

Return Value

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

Remarks

The RECT provided in this method represents the coordinates of the surface inside the tool window that hosts the toolbar. If the toolbar is hosted inside the whole tool window (not just in a control inside the tool window), the RECT can be the same as the RECT of the tool window content.

COM Signature

From vsshell.idl:

HRESULT IVsToolWindowToolbar::GetBorder(
   [out] RECT *prc
);

.NET Framework Security

See Also

Reference

IVsToolWindowToolbar Interface

Microsoft.VisualStudio.Shell.Interop Namespace