Udostępnij za pośrednictwem


IVsTextImage.GetOffsetOfTextAddress(TextAddress, Int32) Method

Definition

Return the buffer address of a given text address.

public:
 int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int % piOffset);
int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int & piOffset);
public int GetOffsetOfTextAddress (Microsoft.VisualStudio.TextManager.Interop.TextAddress ta, out int piOffset);
abstract member GetOffsetOfTextAddress : Microsoft.VisualStudio.TextManager.Interop.TextAddress * int -> int
Public Function GetOffsetOfTextAddress (ta As TextAddress, ByRef piOffset As Integer) As Integer

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:

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

Applies to