Compartir a través de


IElisionBuffer.ElideSpans Method

Hides the text designated in the specified spans.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaración
Function ElideSpans ( _
    spansToElide As NormalizedSpanCollection _
) As IProjectionSnapshot
IProjectionSnapshot ElideSpans(
    NormalizedSpanCollection spansToElide
)
IProjectionSnapshot^ ElideSpans(
    NormalizedSpanCollection^ spansToElide
)
abstract ElideSpans : 
        spansToElide:NormalizedSpanCollection -> IProjectionSnapshot 
function ElideSpans(
    spansToElide : NormalizedSpanCollection
) : IProjectionSnapshot

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
A newly generated snapshot.

Exceptions

Exception Condition
ArgumentNullException

spansToElide is nulla null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The end of the final span in spansToElide is greater than the length of the current snapshot of the SourceBuffer.

.NET Framework Security

See Also

Reference

IElisionBuffer Interface

Microsoft.VisualStudio.Text.Projection Namespace