VsTextImageClass.GetOffsetOfTextAddress(TextAddress, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.