VsTextImageClass::GetOffsetOfTextAddress Method (TextAddress, Int32)

 

Return the buffer address of a given text address.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int GetOffsetOfTextAddress(
	TextAddress ta,
	[OutAttribute] int% piOffset
)

Parameters

ta
Type: Microsoft.VisualStudio.TextManager.Interop::TextAddress

[in] Specifies the requested text address.

piOffset
Type: System::Int32

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

Return Value

Type: System::Int32

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

Return to top
Show: