IVsTipWindow.GetSizePreferences, méthode

Obtient les préférences de taille de la fenêtre de ToolTip.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function GetSizePreferences ( _
    <OutAttribute> prcCtxBounds As RECT(), _
    <OutAttribute> pSizeData As TIPSIZEDATA() _
) As Integer
int GetSizePreferences(
    RECT[] prcCtxBounds,
    TIPSIZEDATA[] pSizeData
)
int GetSizePreferences(
    [OutAttribute] array<RECT>^ prcCtxBounds, 
    [OutAttribute] array<TIPSIZEDATA>^ pSizeData
)
abstract GetSizePreferences : 
        prcCtxBounds:RECT[] byref * 
        pSizeData:TIPSIZEDATA[] byref -> int
function GetSizePreferences(
    prcCtxBounds : RECT[], 
    pSizeData : TIPSIZEDATA[]
) : int

Paramètres

  • prcCtxBounds
    Type : array<RECT[]

    [] le rectangle englobant de la fenêtre de ToolTip, dans l'écran coordonne.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

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

Appliquez cette méthode pour gérer des instances où les préférences de taille ne correspondent à pas la zone disponible pour afficher la fenêtre de ToolTip. Autrement dit, il peut ne pas être possible de fournir une fenêtre de ToolTip de la taille demandée.

Sécurité .NET Framework

Voir aussi

Référence

IVsTipWindow Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms