IVsTextImage.GetOffsetOfTextAddress(TextAddress, Int32) Method
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:
int GetOffsetOfTextAddress(Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, [Runtime::InteropServices::Out] int % piOffset);
C++/WinRT
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
- 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.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
cpp#
HRESULT IVsTextImage::GetOffsetOfTextAddress(
[in] TextAddress ta,
[out, retval] LONG * piOffset
);
Produkt | Versiounen |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |