Share via


IVsSmartTagTipWindow.GetSizePreferences Method

Gets the size preferences for the tip window.

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

Syntax

'Declaration
Function GetSizePreferences ( _
    prcCtxBounds As RECT(), _
    <OutAttribute> pSizeData As SMARTTAGSIZEDATA() _
) As Integer
int GetSizePreferences(
    RECT[] prcCtxBounds,
    SMARTTAGSIZEDATA[] pSizeData
)
int GetSizePreferences(
    [InAttribute] array<RECT>^ prcCtxBounds, 
    [OutAttribute] array<SMARTTAGSIZEDATA>^ pSizeData
)
abstract GetSizePreferences : 
        prcCtxBounds:RECT[] * 
        pSizeData:SMARTTAGSIZEDATA[] byref -> int
function GetSizePreferences(
    prcCtxBounds : RECT[], 
    pSizeData : SMARTTAGSIZEDATA[]
) : int

Parameters

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 textmgr2.idl:

HRESULT IVsSmartTagTipWindow::GetSizePreferences(
   [out] const RECT *prcCtxBounds,
   [out] SMARTTAGSIZEDATA *pSizeData
);

Implementations should be written to handle cases where the size preference returned here is not the same as the actual real estate available to display content. (that is, cases where it may not be possible to provide the tip window in the requested size). The prcCtxBounds parameter represents the bounding rectangle of the tip's context, for use if needed by the implementation. This rectangle is provided in screen coordinates.

.NET Framework Security

See Also

Reference

IVsSmartTagTipWindow Interface

Microsoft.VisualStudio.TextManager.Interop Namespace