IVsTextLines.ReplaceLinesEx(UInt32, Int32, Int32, Int32, Int32, IntPtr, Int32, TextSpan[]) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Manipula a edição de linha do tipo fluxo, como quebra de linha e junção de linha.
public:
int ReplaceLinesEx(System::UInt32 dwFlags, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszText, int iNewLen, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pChangedSpan);
public int ReplaceLinesEx (uint dwFlags, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IntPtr pszText, int iNewLen, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pChangedSpan);
abstract member ReplaceLinesEx : uint32 * int * int * int * int * nativeint * int * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function ReplaceLinesEx (dwFlags As UInteger, iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer, pszText As IntPtr, iNewLen As Integer, pChangedSpan As TextSpan()) As Integer
Parâmetros
- dwFlags
- UInt32
no ORing de REPLACE_TEXT_FLAGS enumeração.
- iStartLine
- Int32
no Linha inicial
- iStartIndex
- Int32
no Índice de caractere inicial dentro da linha. Deve ser menor ou igual ao comprimento da linha.
- iEndLine
- Int32
no Linha final.
- iEndIndex
- Int32
no Índice de caractere final dentro da linha. Deve ser menor ou igual ao comprimento da linha.
- pszText
- IntPtr
no Ponteiro para texto a ser inserido, se houver.
- iNewLen
- Int32
no Número de caracteres a serem inseridos, se houver.
- pChangedSpan
- TextSpan[]
fora Ponteiro para o intervalo de caracteres alterado.
Retornos
Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.
Comentários
Assinatura COM
De textmgr. idl:
HRESULT IVsTextLines::ReplaceLinesEx(
[in] DWORD dwFlags,
[in] long iStartLine,
[in] CharIndex iStartIndex,
[in] long iEndLine,
[in] CharIndex iEndIndex,
[in] LPCWSTR pszText,
[in] long iNewLen,
[out] TextSpan *pChangedSpan
);
Semelhante a ReplaceLines , mas permite que você especifique opções adicionais no dwFlags parâmetro.