C# Class AvalonStudio.Languages.CPlusPlus.CppIndentationStrategy

Smart indentation for C#.
Inheritance: AvalonStudio.TextEditor.Indentation.DefaultIndentationStrategy
Datei anzeigen Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method Description
Indent ( IDocumentAccessor document, bool keepEmptyLines, int caretIndex ) : int

Performs indentation using the specified document accessor.

IndentLine ( TextDocument document, DocumentLine line, int caretIndex ) : int
IndentLines ( TextDocument document, int beginLine, int endLine, int caretIndex ) : int

Method Details

Indent() public method

Performs indentation using the specified document accessor.
public Indent ( IDocumentAccessor document, bool keepEmptyLines, int caretIndex ) : int
document IDocumentAccessor Object used for accessing the document line-by-line
keepEmptyLines bool Specifies whether empty lines should be kept
caretIndex int
return int

IndentLine() public method

public IndentLine ( TextDocument document, DocumentLine line, int caretIndex ) : int
document AvalonStudio.TextEditor.Document.TextDocument
line AvalonStudio.TextEditor.Document.DocumentLine
caretIndex int
return int

IndentLines() public method

public IndentLines ( TextDocument document, int beginLine, int endLine, int caretIndex ) : int
document AvalonStudio.TextEditor.Document.TextDocument
beginLine int
endLine int
caretIndex int
return int