Share via


IVsTextImage.GetTextAddressOfOffset(Int32, TextAddress[]) Method

Definition

Return the text address of a given buffer address.

public:
 int GetTextAddressOfOffset(int iOffset, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextAddress> ^ pta);
public:
 int GetTextAddressOfOffset(int iOffset, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextAddress> ^ pta);
int GetTextAddressOfOffset(int iOffset, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextAddress> const & pta);
public int GetTextAddressOfOffset (int iOffset, Microsoft.VisualStudio.TextManager.Interop.TextAddress[] pta);
abstract member GetTextAddressOfOffset : int * Microsoft.VisualStudio.TextManager.Interop.TextAddress[] -> int
Public Function GetTextAddressOfOffset (iOffset As Integer, pta As TextAddress()) As Integer

Parameters

iOffset
Int32

[in] Integer containing the offset from the start of the text image buffer.

pta
TextAddress[]

[out] Pointer to the text address.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

Applies to