VsTextImageClass.GetSpanLength Method
Returns 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
‘선언
Public Overridable Function GetSpanLength ( _
pts As TextSpan(), _
<OutAttribute> ByRef pcch As Integer _
) As Integer
public virtual int GetSpanLength(
TextSpan[] pts,
out int pcch
)
public:
virtual int GetSpanLength(
[InAttribute] array<TextSpan>^ pts,
[OutAttribute] int% pcch
)
abstract GetSpanLength :
pts:TextSpan[] *
pcch:int byref -> int
override GetSpanLength :
pts:TextSpan[] *
pcch:int byref -> int
public function GetSpanLength(
pts : TextSpan[],
pcch : int
) : int
Parameters
- pts
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Pointer to a TextSpan structure.
- 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.
Implements
IVsTextImage.GetSpanLength(array<TextSpan[], Int32%)
.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.