IVsSmartTagTipWindow.GetContextStream Method

Returns the context stream.

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

Syntax

'宣言
Function GetContextStream ( _
    <OutAttribute> ByRef piPos As Integer, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
'使用
Dim instance As IVsSmartTagTipWindow
Dim piPos As Integer
Dim piLength As Integer
Dim returnValue As Integer

returnValue = instance.GetContextStream(piPos, _
    piLength)
int GetContextStream(
    out int piPos,
    out int piLength
)
int GetContextStream(
    [OutAttribute] int% piPos, 
    [OutAttribute] int% piLength
)
function GetContextStream(
    piPos : int, 
    piLength : int
) : 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::GetContextStream(
   [out] long *piPos,
   [out] long *piLength
);

The context stream is the position and length of text in the buffer that should not be obscured by the tip window, but to which the content of the tip is related.

Permissions

See Also

Reference

IVsSmartTagTipWindow Interface

IVsSmartTagTipWindow Members

Microsoft.VisualStudio.TextManager.Interop Namespace