Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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
- ta
Type: Microsoft.VisualStudio.TextManager.Interop.TextAddress
[in] Specifies the requested text address.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.