共用方式為


IVsSwatchClient.GetCellTooltip Method

Returns a tooltip string in pbstrTooltip, or nulla null reference (Nothing in Visual Basic) if none.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣告
Function GetCellTooltip ( _
    x As Integer, _
    y As Integer, _
    <OutAttribute> ByRef pbstrTooltip As String _
) As Integer
'用途
Dim instance As IVsSwatchClient
Dim x As Integer
Dim y As Integer
Dim pbstrTooltip As String
Dim returnValue As Integer

returnValue = instance.GetCellTooltip(x, _
    y, pbstrTooltip)
int GetCellTooltip(
    int x,
    int y,
    out string pbstrTooltip
)
int GetCellTooltip(
    [InAttribute] int x, 
    [InAttribute] int y, 
    [OutAttribute] String^% pbstrTooltip
)
abstract GetCellTooltip : 
        x:int * 
        y:int * 
        pbstrTooltip:string byref -> int 
function GetCellTooltip(
    x : int, 
    y : int, 
    pbstrTooltip : String
) : 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 vsshell.idl:

HRESULT IVsSwatchClient::GetCellTooltip(
   [in] int x, 
   [in] int y, 
   [out, retval] BSTR *pbstrTooltip
);

.NET Framework Security

See Also

Reference

IVsSwatchClient Interface

IVsSwatchClient Members

Microsoft.VisualStudio.Shell.Interop Namespace