IVsSmartTagTipWindow.GetSizePreferences Method

Returns the size preferences for a tip window.

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

Syntax

'宣言
Function GetSizePreferences ( _
    prcCtxBounds As RECT(), _
    <OutAttribute> pSizeData As SMARTTAGSIZEDATA() _
) As Integer
'使用
Dim instance As IVsSmartTagTipWindow
Dim prcCtxBounds As RECT()
Dim pSizeData As SMARTTAGSIZEDATA()
Dim returnValue As Integer

returnValue = instance.GetSizePreferences(prcCtxBounds, _
    pSizeData)
int GetSizePreferences(
    RECT[] prcCtxBounds,
    SMARTTAGSIZEDATA[] pSizeData
)
int GetSizePreferences(
    [InAttribute] array<RECT>^ prcCtxBounds, 
    [OutAttribute] array<SMARTTAGSIZEDATA>^ pSizeData
)
function GetSizePreferences(
    prcCtxBounds : RECT[], 
    pSizeData : SMARTTAGSIZEDATA[]
) : int

Parameters

  • prcCtxBounds
    Type: []

    [out] Coordinates of bounding rectangle.

  • pSizeData
    Type: []

    [out] Size of the tip window. For values see SMARTTAGSIZEDATA.

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 they return here are not what they are given for real estate in which to display content. (that is, 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, should the implementation be interested. This rectangle is provided in screen coordinates.

Permissions

See Also

Reference

IVsSmartTagTipWindow Interface

IVsSmartTagTipWindow Members

Microsoft.VisualStudio.TextManager.Interop Namespace