Compartilhar via


IVsTextImage.GetSpanLength Method

Return the number of characters in a text span.

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

Syntax

'Declaração
Function GetSpanLength ( _
    pts As TextSpan(), _
    <OutAttribute> ByRef pcch As Integer _
) As Integer
int GetSpanLength(
    TextSpan[] pts,
    out int pcch
)
int GetSpanLength(
    [InAttribute] array<TextSpan>^ pts, 
    [OutAttribute] int% pcch
)
abstract GetSpanLength : 
        pts:TextSpan[] * 
        pcch:int byref -> int 
function GetSpanLength(
    pts : TextSpan[], 
    pcch : int
) : int

Parameters

  • pcch
    Type: System.Int32%
    [out] Pointer to a character count of the text span.

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

.NET Framework Security

See Also

Reference

IVsTextImage Interface

Microsoft.VisualStudio.TextManager.Interop Namespace