C# Класс ICSharpCode.NRefactory.CSharp.FormattingChanges

The formatting changes are used to format a specific region inside a document and apply a minimal formatting changeset to a given document. This is useful for a text editor environment.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyChanges ( ) : void

Applies the changes to the input document.

ApplyChanges ( Script script ) : void

Applies the changes to the given Script instance.

ApplyChanges ( int startOffset, int length ) : void
ApplyChanges ( int startOffset, int length, Action documentReplace, Func filter = null ) : void
ApplyChanges ( int startOffset, int length, Script script ) : void

Приватные методы

Метод Описание
AddChange ( int offset, int removedChars, string insertedText ) : ICSharpCode.NRefactory.CSharp.Refactoring.TextReplaceAction
FormattingChanges ( IDocument document ) : System

Описание методов

ApplyChanges() публичный Метод

Applies the changes to the input document.
public ApplyChanges ( ) : void
Результат void

ApplyChanges() публичный Метод

Applies the changes to the given Script instance.
public ApplyChanges ( Script script ) : void
script Script
Результат void

ApplyChanges() публичный Метод

public ApplyChanges ( int startOffset, int length ) : void
startOffset int
length int
Результат void

ApplyChanges() публичный Метод

public ApplyChanges ( int startOffset, int length, Action documentReplace, Func filter = null ) : void
startOffset int
length int
documentReplace Action
filter Func
Результат void

ApplyChanges() публичный Метод

public ApplyChanges ( int startOffset, int length, Script script ) : void
startOffset int
length int
script Script
Результат void