VsTextImageClass.GetOffsetOfTextAddress(TextAddress, Int32) Method

Definition

Return the buffer address of a given text address.

public:
 virtual int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int % piOffset) = Microsoft::VisualStudio::TextManager::Interop::IVsTextImage::GetOffsetOfTextAddress;
public:
 virtual int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int % piOffset);
 virtual int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int & piOffset);
public virtual int GetOffsetOfTextAddress (Microsoft.VisualStudio.TextManager.Interop.TextAddress ta, out int piOffset);
abstract member GetOffsetOfTextAddress : Microsoft.VisualStudio.TextManager.Interop.TextAddress * int -> int
override this.GetOffsetOfTextAddress : Microsoft.VisualStudio.TextManager.Interop.TextAddress * int -> int
Public Overridable 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.

Implements

Applies to