IVsTextImage.GetSpanLength(TextSpan[], Int32) Método

Definição

Retornar o número de caracteres em um intervalo de texto.

public:
 int GetSpanLength(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, [Runtime::InteropServices::Out] int % pcch);
int GetSpanLength(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, [Runtime::InteropServices::Out] int & pcch);
public int GetSpanLength (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, out int pcch);
abstract member GetSpanLength : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
Public Function GetSpanLength (pts As TextSpan(), ByRef pcch As Integer) As Integer

Parâmetros

pts
TextSpan[]

no Ponteiro para uma TextSpan estrutura.

pcch
Int32

fora Ponteiro para uma contagem de caracteres do intervalo de texto.

Retornos

Int32

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 IVsTextImage::GetSpanLength(  
   [in] const TextSpan * pts,  
   [out, retval] LONG * pcch  
);  

Aplica-se a