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
- 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
Implements
IVsTextImage.GetOffsetOfTextAddress(TextAddress, Int32%)
.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.