Partilhar via


Método VsTextViewClass.GetLineAndColumn

Converte uma posição de fluxo de texto em um índice de linha e coluna.

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

Sintaxe

'Declaração
Public Overridable Function GetLineAndColumn ( _
    iPos As Integer, _
    <OutAttribute> ByRef piLine As Integer, _
    <OutAttribute> ByRef piIndex As Integer _
) As Integer
public virtual int GetLineAndColumn(
    int iPos,
    out int piLine,
    out int piIndex
)
public:
virtual int GetLineAndColumn(
    [InAttribute] int iPos, 
    [OutAttribute] int% piLine, 
    [OutAttribute] int% piIndex
)
abstract GetLineAndColumn : 
        iPos:int * 
        piLine:int byref * 
        piIndex:int byref -> int  
override GetLineAndColumn : 
        iPos:int * 
        piLine:int byref * 
        piIndex:int byref -> int
public function GetLineAndColumn(
    iPos : int, 
    piLine : int, 
    piIndex : int
) : int

Parâmetros

  • iPos
    Tipo: Int32

    [in] Integer que contém a posição no fluxo de texto.

  • piLine
    Tipo: Int32%

    [out] Ponteiro que contém o índice de linha correspondente à posição do fluxo.

  • piIndex
    Tipo: Int32%

    [out] Ponteiro que contém o índice da coluna correspondente à posição do fluxo.

Valor de retorno

Tipo: Int32

Implementações

IVsTextView.GetLineAndColumn(Int32, Int32%, Int32%)

Segurança do .NET Framework

Consulte também

Referência

VsTextViewClass Classe

Namespace Microsoft.VisualStudio.TextManager.Interop