次の方法で共有


IVsCanCoordinatorClipTextSpan.ShouldClipSpanToValidSpanInSecondaryBuffer Method

Definition

Determines whether the buffer coordinator should clip a text span to a valid span in the secondary buffer.

public:
 int ShouldClipSpanToValidSpanInSecondaryBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pSecondaryBuffer, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsTextSpanInPrimaryBuffer, [Runtime::InteropServices::Out] int % pfShouldClipTextSpan);
int ShouldClipSpanToValidSpanInSecondaryBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pSecondaryBuffer, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsTextSpanInPrimaryBuffer, [Runtime::InteropServices::Out] int & pfShouldClipTextSpan);
public int ShouldClipSpanToValidSpanInSecondaryBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pPrimaryBuffer, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pSecondaryBuffer, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsTextSpanInPrimaryBuffer, out int pfShouldClipTextSpan);
abstract member ShouldClipSpanToValidSpanInSecondaryBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
Public Function ShouldClipSpanToValidSpanInSecondaryBuffer (pPrimaryBuffer As IVsTextLines, pSecondaryBuffer As IVsTextLines, ptsTextSpanInPrimaryBuffer As TextSpan(), ByRef pfShouldClipTextSpan As Integer) As Integer

Parameters

pPrimaryBuffer
IVsTextLines

[in] Pointer to the primary buffer.

pSecondaryBuffer
IVsTextLines

[in] Pointer to the secondary buffer.

ptsTextSpanInPrimaryBuffer
TextSpan[]

[in] Pointer to the text span.

pfShouldClipTextSpan
Int32

[out] Value is true if the buffer coordinator should clip the text span to a valid span in the secondary buffer.

Returns

Returns S_OK if the method succeeds.

Applies to