VsTextPackageClass::NavigateToLineAndColumn Method (IVsTextBuffer^, Guid, Int32, Int32, Int32, Int32)

 

Finds or creates an appropriate view on the specified buffer and places the selection at the specified location.

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

public:
virtual int NavigateToLineAndColumn(
	IVsTextBuffer^ pBuffer,
	[InAttribute] Guid% guidDocViewType,
	int iStartRow,
	int iStartIndex,
	int iEndRow,
	int iEndIndex
)

Parameters

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^

[in] Pointer to the IVsTextBuffer interface.

guidDocViewType
Type: System::Guid

[in] GUID identifying the view. This value should always be LOGVIEWID_TextView.

iStartRow
Type: System::Int32

[in] Starting line for the selection to locate.

iStartIndex
Type: System::Int32

[in] Starting index for the selection to locate.

iEndRow
Type: System::Int32

[in] Ending line for the selection to locate.

iEndIndex
Type: System::Int32

[in] Ending index for the selection to locate.

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: