IVsTextLinesEvents.OnChangeLineText(TextLineChange[], Int32) Método

Definição

Notifica o cliente quando o conteúdo de uma linha de texto no buffer é alterado.

public:
 void OnChangeLineText(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextLineChange> ^ pTextLineChange, int fLast);
public:
 void OnChangeLineText(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextLineChange> ^ pTextLineChange, int fLast);
void OnChangeLineText(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextLineChange> const & pTextLineChange, int fLast);
public void OnChangeLineText (Microsoft.VisualStudio.TextManager.Interop.TextLineChange[] pTextLineChange, int fLast);
abstract member OnChangeLineText : Microsoft.VisualStudio.TextManager.Interop.TextLineChange[] * int -> unit
Public Sub OnChangeLineText (pTextLineChange As TextLineChange(), fLast As Integer)

Parâmetros

pTextLineChange
TextLineChange[]

no Ponteiro para a TextLineChange estrutura que define a forma do texto antigo e novo.

fLast
Int32

no Substituí Não use.

Comentários

Assinatura COM

De textmgr. idl:

HRESULT IVsTextLinesEvents::OnChangeLineText(  
   [in] const TextLineChange *pTextLineChange,  
   [in] BOOL fLast  
);  

A TextLineChange estrutura descreve completamente uma alteração de texto. Essa estrutura descreve os resultados de uma operação de substituição e define duas extensões, da seguinte maneira:

  • De iStartLine/iStartIndex a iNewEndLine/iNewEndIndex. Essa extensão indica a extensão do texto recentemente inserido em termos de estado atual do buffer.

  • De iStartLine/iStartIndex a iOldEndLine/iOldEndIndex. Essa extensão descreve a extensão do texto que foi excluído em termos do estado do buffer antes da alteração.

Portanto, a estrutura contém informações sobre a forma da região antes e depois da alteração. A TextLineChange estrutura não contém o texto antigo que foi excluído.

Aplica-se a