C# Class RazorPad.UI.Editors.DefaultFormattingStrategy

Inheritance: IFormattingStrategy
Afficher le fichier Open project: RazorPad/RazorPad

Méthodes publiques

Méthode Description
FindSelectedCommentRegion ( ITextEditor editor, string commentStart, string commentEnd ) : BlockCommentRegion
FormatLine ( ITextEditor editor, char charTyped ) : void
IndentLine ( ITextEditor editor, IDocumentLine line ) : void
IndentLines ( ITextEditor editor, int begin, int end ) : void
SurroundSelectionWithComment ( ITextEditor editor ) : void

Méthodes protégées

Méthode Description
SurroundSelectionWithBlockComment ( ITextEditor editor, string blockStart, string blockEnd ) : void

Default implementation for multiline comments.

SurroundSelectionWithSingleLineComment ( ITextEditor editor, string comment ) : void

Default implementation for single line comments.

Method Details

FindSelectedCommentRegion() public static méthode

public static FindSelectedCommentRegion ( ITextEditor editor, string commentStart, string commentEnd ) : BlockCommentRegion
editor ITextEditor
commentStart string
commentEnd string
Résultat BlockCommentRegion

FormatLine() public méthode

public FormatLine ( ITextEditor editor, char charTyped ) : void
editor ITextEditor
charTyped char
Résultat void

IndentLine() public méthode

public IndentLine ( ITextEditor editor, IDocumentLine line ) : void
editor ITextEditor
line IDocumentLine
Résultat void

IndentLines() public méthode

public IndentLines ( ITextEditor editor, int begin, int end ) : void
editor ITextEditor
begin int
end int
Résultat void

SurroundSelectionWithBlockComment() protected méthode

Default implementation for multiline comments.
protected SurroundSelectionWithBlockComment ( ITextEditor editor, string blockStart, string blockEnd ) : void
editor ITextEditor
blockStart string
blockEnd string
Résultat void

SurroundSelectionWithComment() public méthode

public SurroundSelectionWithComment ( ITextEditor editor ) : void
editor ITextEditor
Résultat void

SurroundSelectionWithSingleLineComment() protected méthode

Default implementation for single line comments.
protected SurroundSelectionWithSingleLineComment ( ITextEditor editor, string comment ) : void
editor ITextEditor
comment string
Résultat void