C# Class 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.
Exibir arquivo Open project: 0xd4d/NRefactory Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
AddChange ( int offset, int removedChars, string insertedText ) : ICSharpCode.NRefactory.CSharp.Refactoring.TextReplaceAction
FormattingChanges ( IDocument document ) : System

Method Details

ApplyChanges() public method

Applies the changes to the input document.
public ApplyChanges ( ) : void
return void

ApplyChanges() public method

Applies the changes to the given Script instance.
public ApplyChanges ( Script script ) : void
script Script
return void

ApplyChanges() public method

public ApplyChanges ( int startOffset, int length ) : void
startOffset int
length int
return void

ApplyChanges() public method

public ApplyChanges ( int startOffset, int length, Action documentReplace, Func filter = null ) : void
startOffset int
length int
documentReplace Action
filter Func
return void

ApplyChanges() public method

public ApplyChanges ( int startOffset, int length, Script script ) : void
startOffset int
length int
script Script
return void