Export (0) Print
Expand All

IVsTextView.GetPointOfLineColumn Method

Returns the coordinates for the upper left corner of a particular line and column.

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

int GetPointOfLineColumn(
	int iLine,
	int iCol,
	POINT[] ppt
)

Parameters

iLine
Type: System.Int32
[in] Integer containing the line index.
iCol
Type: System.Int32
[in] Integer containing the column index. Viewcol coordinates may include virtual space.
ppt
Type: Microsoft.VisualStudio.OLE.Interop.POINT[]
[out, retval] Structure defining the x- and y- coordinates of the upper left corner of the line. For more information, see POINT in the Platform SDK.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From textmgr.idl:

HRESULT IVsTextView::GetPointOfLineColumn(
   [in] long iLine,
   [in] ViewCol iCol,
   [out, retval] POINT * ppt
);

Use this method to determine the coordinates (in pixels) for the upper left corner of the specified line and column.

Community Additions

ADD
Show:
© 2015 Microsoft