Freigeben über


IElisionBuffer.ExpandSpans Method

Expands the text specified by the specified spans.

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

Syntax

'Declaration
Function ExpandSpans ( _
    spansToExpand As NormalizedSpanCollection _
) As IProjectionSnapshot
IProjectionSnapshot ExpandSpans(
    NormalizedSpanCollection spansToExpand
)
IProjectionSnapshot^ ExpandSpans(
    NormalizedSpanCollection^ spansToExpand
)
abstract ExpandSpans : 
        spansToExpand:NormalizedSpanCollection -> IProjectionSnapshot 
function ExpandSpans(
    spansToExpand : NormalizedSpanCollection
) : IProjectionSnapshot

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
An IProjectionSnapshot.

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentOutOfRangeException

The end of the final spans in spansToExpand 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