IProjectionBuffer.DeleteSpans(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes a sequence of source spans from the projection buffer.
public:
Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ DeleteSpans(int position, int spansToDelete);
public:
Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ DeleteSpans(int position, int spansToDelete);
Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot DeleteSpans(int position, int spansToDelete);
public Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot DeleteSpans (int position, int spansToDelete);
abstract member DeleteSpans : int * int -> Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
Public Function DeleteSpans (position As Integer, spansToDelete As Integer) As IProjectionSnapshot
Parameters
- position
- Int32
The position at which to begin deleting spans.
- spansToDelete
- Int32
The number of spans to delete.
Returns
Exceptions
spansToDelete
is less than zero or
position
+ spansToDelete
is greater than SpanCount.