Table of Contents

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

Line int

The line where what is replaced starts, from 0.

Character int

Where what is replaced starts, in UTF-16 code units from the start of its line.

EndLine int

The line where what is replaced ends.

EndCharacter int

Where what is replaced ends, in UTF-16 code units from the start of its line: the character after it.

NewText string

What 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

line int

The line, from 0.

character int

Where what is replaced starts.

length int

How many characters are replaced.

newText string

What 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

int

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

int

EndLine

The line where what is replaced ends.

public int EndLine { get; init; }

Property Value

int

Line

The line where what is replaced starts, from 0.

public int Line { get; init; }

Property Value

int

NewText

What replaces it.

public string NewText { get; init; }

Property Value

string