Compartilhar via


IVsTextImage.GetOffsetOfTextAddress Method

Return the buffer address of a given text address.

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

Syntax

'Declaração
Function GetOffsetOfTextAddress ( _
    ta As TextAddress, _
    <OutAttribute> ByRef piOffset As Integer _
) As Integer
int GetOffsetOfTextAddress(
    TextAddress ta,
    out int piOffset
)
int GetOffsetOfTextAddress(
    [InAttribute] TextAddress ta, 
    [OutAttribute] int% piOffset
)
abstract GetOffsetOfTextAddress : 
        ta:TextAddress * 
        piOffset:int byref -> int 
function GetOffsetOfTextAddress(
    ta : TextAddress, 
    piOffset : int
) : int

Parameters

  • piOffset
    Type: System.Int32%
    [out] Pointer to an integer containing the offset from the start of the text image buffer.

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

HRESULT IVsTextImage::GetOffsetOfTextAddress(
   [in] TextAddress ta,
   [out, retval] LONG * piOffset
);

.NET Framework Security

See Also

Reference

IVsTextImage Interface

Microsoft.VisualStudio.TextManager.Interop Namespace