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
'Dichiarazione
Public Overridable Function GetText ( _
pts As TextSpan(), _
cch As Integer, _
<OutAttribute> psz As UShort() _
) As Integer
'Utilizzo
Dim instance As VsTextImageClass
Dim pts As TextSpan()
Dim cch As Integer
Dim psz As UShort()
Dim returnValue As Integer
returnValue = instance.GetText(pts, cch, _
psz)
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
- pts
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Pointer to a TextSpan structure.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.