Compartilhar via


IVsCanCoordinatorClipTextSpan.ShouldClipSpanToValidSpanInSecondaryBuffer Method

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

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

Syntax

'Declaration
Function ShouldClipSpanToValidSpanInSecondaryBuffer ( _
    pPrimaryBuffer As IVsTextLines, _
    pSecondaryBuffer As IVsTextLines, _
    ptsTextSpanInPrimaryBuffer As TextSpan(), _
    <OutAttribute> ByRef pfShouldClipTextSpan As Integer _
) As Integer
int ShouldClipSpanToValidSpanInSecondaryBuffer(
    IVsTextLines pPrimaryBuffer,
    IVsTextLines pSecondaryBuffer,
    TextSpan[] ptsTextSpanInPrimaryBuffer,
    out int pfShouldClipTextSpan
)
int ShouldClipSpanToValidSpanInSecondaryBuffer(
    [InAttribute] IVsTextLines^ pPrimaryBuffer, 
    [InAttribute] IVsTextLines^ pSecondaryBuffer, 
    [InAttribute] array<TextSpan>^ ptsTextSpanInPrimaryBuffer, 
    [OutAttribute] int% pfShouldClipTextSpan
)
abstract ShouldClipSpanToValidSpanInSecondaryBuffer : 
        pPrimaryBuffer:IVsTextLines * 
        pSecondaryBuffer:IVsTextLines * 
        ptsTextSpanInPrimaryBuffer:TextSpan[] * 
        pfShouldClipTextSpan:int byref -> int
function ShouldClipSpanToValidSpanInSecondaryBuffer(
    pPrimaryBuffer : IVsTextLines, 
    pSecondaryBuffer : IVsTextLines, 
    ptsTextSpanInPrimaryBuffer : TextSpan[], 
    pfShouldClipTextSpan : int
) : int

Parameters

  • pfShouldClipTextSpan
    Type: System.Int32%

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

Return Value

Type: System.Int32
Returns S_OK if the method succeeds.

.NET Framework Security

See Also

Reference

IVsCanCoordinatorClipTextSpan Interface

Microsoft.VisualStudio.TextManager.Interop Namespace