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)

Syntax

'Declaration
Function GetPointOfLineColumn ( _
    iLine As Integer, _
    iCol As Integer, _
    <OutAttribute> ppt As POINT() _
) As Integer
'Usage
Dim instance As IVsTextView 
Dim iLine As Integer 
Dim iCol As Integer 
Dim ppt As POINT()
Dim returnValue As Integer 

returnValue = instance.GetPointOfLineColumn(iLine, _
    iCol, ppt)
int GetPointOfLineColumn(
    int iLine,
    int iCol,
    POINT[] ppt
)
int GetPointOfLineColumn(
    [InAttribute] int iLine, 
    [InAttribute] int iCol, 
    [OutAttribute] array<POINT>^ ppt
)
function GetPointOfLineColumn(
    iLine : int, 
    iCol : int, 
    ppt : POINT[]
) : int

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.

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

IVsTextView Interface

IVsTextView Members

Microsoft.VisualStudio.TextManager.Interop Namespace