Struct IndentationEdit
- Namespace
- RDCore.SDK.Formatting
- Assembly
- RDCore.SDK.dll
An edit of the whitespace of a module: what is from Character of line Line to EndCharacter of line
EndLine is replaced by NewText. What is replaced is whitespace, or nothing, and so is what replaces it: a run of it
within a line, or the empty lines between two procedures, from the end of the line before them.
public readonly record struct IndentationEdit : IEquatable<IndentationEdit>
- Implements
- Inherited Members
Constructors
IndentationEdit(int, int, int, int, string)
An edit of the whitespace of a module: what is from Character of line Line to EndCharacter of line
EndLine is replaced by NewText. What is replaced is whitespace, or nothing, and so is what replaces it: a run of it
within a line, or the empty lines between two procedures, from the end of the line before them.
public IndentationEdit(int Line, int Character, int EndLine, int EndCharacter, string NewText)
Parameters
LineintThe line where what is replaced starts, from 0.
CharacterintWhere what is replaced starts, in UTF-16 code units from the start of its line.
EndLineintThe line where what is replaced ends.
EndCharacterintWhere what is replaced ends, in UTF-16 code units from the start of its line: the character after it.
NewTextstringWhat replaces it.
IndentationEdit(int, int, int, string)
An edit within a line: the length characters at character of line line are replaced by
newText.
public IndentationEdit(int line, int character, int length, string newText)
Parameters
lineintThe line, from 0.
characterintWhere what is replaced starts.
lengthintHow many characters are replaced.
newTextstringWhat replaces them.
Properties
Character
Where what is replaced starts, in UTF-16 code units from the start of its line.
public int Character { get; init; }
Property Value
EndCharacter
Where what is replaced ends, in UTF-16 code units from the start of its line: the character after it.
public int EndCharacter { get; init; }
Property Value
EndLine
The line where what is replaced ends.
public int EndLine { get; init; }
Property Value
Line
The line where what is replaced starts, from 0.
public int Line { get; init; }
Property Value
NewText
What replaces it.
public string NewText { get; init; }