VsTextImageClass.GetText Method

Returns the text of a text span.

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

Syntax

'Declaration
Public Overridable Function GetText ( _
    pts As TextSpan(), _
    cch As Integer, _
    <OutAttribute> psz As UShort() _
) As Integer
public virtual int GetText(
    TextSpan[] pts,
    int cch,
    ushort[] psz
)
public:
virtual int GetText(
    [InAttribute] array<TextSpan>^ pts, 
    [InAttribute] int cch, 
    [OutAttribute] array<unsigned short>^ psz
)
abstract GetText : 
        pts:TextSpan[] * 
        cch:int * 
        psz:uint16[] byref -> int 
override GetText : 
        pts:TextSpan[] * 
        cch:int * 
        psz:uint16[] byref -> int 
public function GetText(
    pts : TextSpan[], 
    cch : int, 
    psz : ushort[]
) : int

Parameters

  • cch
    Type: System.Int32
    [in] Number of characters to return.
  • psz
    Type: array<System.UInt16[]
    [out] Pointer to a null terminated string containing the text.

Return Value

Type: System.Int32

Implements

IVsTextImage.GetText(array<TextSpan[], Int32, array<UInt16[])

.NET Framework Security

See Also

Reference

VsTextImageClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace