Compartilhar via


IVsToolWindowToolbar.GetBorder(RECT[]) Method

Definition

Returns the border information for a tool window.

public:
 int GetBorder(cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
public:
 int GetBorder(Platform::Array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
int GetBorder(std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & prc);
public int GetBorder (Microsoft.VisualStudio.OLE.Interop.RECT[] prc);
abstract member GetBorder : Microsoft.VisualStudio.OLE.Interop.RECT[] -> int
Public Function GetBorder (prc As RECT()) As Integer

Parameters

prc
RECT[]

[out] Pointer to the location and size of the tool window border.

Returns

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  
);  

Applies to