Freigeben über


VsTextImageClass.GetSpanLength(TextSpan[], Int32) Method

Definition

Returns the number of characters in a text span.

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

Parameters

pts
TextSpan[]

[in] Pointer to a TextSpan structure.

pcch
Int32

[out] Pointer to a character count of the text span.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to