blob: ccf1358a1714de502dc88039bd2fa601771293f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.Text.Utilities;
namespace Microsoft.VisualStudio.Text.Implementation
{
/// <summary>
/// Information about the line breaks contained in an <see cref="StringRebuilderForChars"/>.
/// </summary>
public interface ILineBreaks
{
/// <summary>
/// The number of line breaks in the <see cref="StringRebuilderForChars"/>.
/// </summary>
int Length { get; }
/// <summary>
/// The starting position of the <paramref name="index"/>th line break.
/// </summary>
int StartOfLineBreak(int index);
/// <summary>
/// The starting position of the <paramref name="index"/>th line break.
/// </summary>
int EndOfLineBreak(int index);
}
public interface ILineBreaksEditor : ILineBreaks
{
/// <summary>
/// Add a line break at <paramref name="start"/> with <paramref name="length"/>
/// </summary>
void Add(int start, int length);
}
}
|