VsTextImageClass.GetTextAddressOfOffset Method
Returns the text address of a given buffer address.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Déclaration
Public Overridable Function GetTextAddressOfOffset ( _
iOffset As Integer, _
<OutAttribute> pta As TextAddress() _
) As Integer
public virtual int GetTextAddressOfOffset(
int iOffset,
TextAddress[] pta
)
public:
virtual int GetTextAddressOfOffset(
[InAttribute] int iOffset,
[OutAttribute] array<TextAddress>^ pta
)
abstract GetTextAddressOfOffset :
iOffset:int *
pta:TextAddress[] byref -> int
override GetTextAddressOfOffset :
iOffset:int *
pta:TextAddress[] byref -> int
public function GetTextAddressOfOffset(
iOffset : int,
pta : TextAddress[]
) : int
Parameters
- iOffset
Type: System.Int32
[in] Integer containing the offset from the start of the text image buffer.
- pta
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextAddress[]
[out] Pointer to the text address.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsTextImage.GetTextAddressOfOffset(Int32, array<TextAddress[])
.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.