IVsTextImage.GetOffsetOfTextAddress(TextAddress, Int32) Method

Definition

Return the buffer address of a given text address.

C++/WinRT
int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int & piOffset);

Parameters

ta
TextAddress

[in] Specifies the requested text address.

piOffset
Int32

[out] Pointer to an integer containing the offset from the start of the text image buffer.

Returns

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

Remarks

COM Signature

From textmgr.idl:

cpp#
HRESULT IVsTextImage::GetOffsetOfTextAddress(  
   [in] TextAddress ta,  
   [out, retval] LONG * piOffset  
);  

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022