Compartir a través de


IVsTipWindow.GetSizePreferences(RECT[], TIPSIZEDATA[]) Method

Definition

Gets the size preferences for the ToolTip window.

public:
 int GetSizePreferences(cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prcCtxBounds, cli::array <Microsoft::VisualStudio::TextManager::Interop::TIPSIZEDATA> ^ pSizeData);
int GetSizePreferences(std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & prcCtxBounds, std::Array <Microsoft::VisualStudio::TextManager::Interop::TIPSIZEDATA> const & pSizeData);
public int GetSizePreferences (Microsoft.VisualStudio.OLE.Interop.RECT[] prcCtxBounds, Microsoft.VisualStudio.TextManager.Interop.TIPSIZEDATA[] pSizeData);
abstract member GetSizePreferences : Microsoft.VisualStudio.OLE.Interop.RECT[] * Microsoft.VisualStudio.TextManager.Interop.TIPSIZEDATA[] -> int
Public Function GetSizePreferences (prcCtxBounds As RECT(), pSizeData As TIPSIZEDATA()) As Integer

Parameters

prcCtxBounds
RECT[]

[out] The bounding rectangle of the ToolTip window, in screen coordinates.

pSizeData
TIPSIZEDATA[]

[out] Size and position of the ToolTip window. For a list of pSizeData values, see TIPSIZEDATA.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTipWindow::GetSizePreferences(  
   [out] const RECT *prcCtxBounds,  
   [out] TIPSIZEDATA *pSizeData  
);  

Implement this method to handle instances where the size preferences do not match the area available to display the ToolTip window. That is, it may not be possible to provide a ToolTip window of the requested size.

Applies to