Share via


VsTextImageClass.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

'Declaration
Public Overridable Function GetOffsetOfTextAddress ( _
    ta As TextAddress, _
    <OutAttribute> ByRef piOffset As Integer _
) As Integer
public virtual int GetOffsetOfTextAddress(
    TextAddress ta,
    out int piOffset
)
public:
virtual int GetOffsetOfTextAddress(
    [InAttribute] TextAddress ta, 
    [OutAttribute] int% piOffset
)
abstract GetOffsetOfTextAddress : 
        ta:TextAddress * 
        piOffset:int byref -> int  
override GetOffsetOfTextAddress : 
        ta:TextAddress * 
        piOffset:int byref -> int
public 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.

Implements

IVsTextImage.GetOffsetOfTextAddress(TextAddress, Int32%)

.NET Framework Security

See Also

Reference

VsTextImageClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace