Method | Description | |
---|---|---|
AddFormattingRegion ( DomRegion region ) : void |
Adds a region in the document that should be formatted.
|
|
AnalyzeFormatting ( IDocument document, SyntaxTree syntaxTree, |
Analyzes the formatting of a given document and syntax tree.
|
|
CSharpFormatter ( |
Initializes a new instance of the ICSharpCode.NRefactory.CSharp.CSharpFormatter class.
|
|
Format ( IDocument document ) : string |
Format the specified document and gives back the formatted text as result.
|
|
Format ( string text ) : string |
Format the specified text and gives back the formatted text as result.
|
Method | Description | |
---|---|---|
InternalFormat ( IDocument document ) : string |
public AddFormattingRegion ( DomRegion region ) : void | ||
region | DomRegion | |
return | void |
public AnalyzeFormatting ( IDocument document, SyntaxTree syntaxTree, |
||
document | IDocument | Document. |
syntaxTree | SyntaxTree | Syntax tree. |
token | The cancellation token. | |
return |
public CSharpFormatter ( |
||
policy | The formatting policy to use. | |
options | ICSharpCode.NRefactory.CSharp.TextEditorOptions | The text editor options (optional). Default is: TextEditorOptions.Default |
return | System |
public Format ( IDocument document ) : string | ||
document | IDocument | |
return | string |