IVsTextImage::GetTextAddressOfOffset Method (Int32, array<TextAddress>^)

 

Return the text address of a given buffer address.

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

int GetTextAddressOfOffset(
	int iOffset,
	array<TextAddress>^ pta
)

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.

From textmgr.idl:

HRESULT IVsTextImage::GetTextAddressOfOffset(
   [in] LONG iOffset,
   [out, retval] TextAddress * pta
);
Return to top
Show: