C# Class Microsoft.Languages.Core.Formatting.TextBuilder

Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
AppendPreformattedText ( string text ) : void
AppendSpace ( ) : void
AppendText ( char ch ) : void
AppendText ( string text ) : void
AppendTextWithWrap ( string text, int wrapLength ) : void
CloseIndentLevel ( ) : void
CopyFollowingLineBreaks ( ITextIterator iterator, int position ) : int
CopyPrecedingLineBreaks ( ITextIterator iterator, int position ) : int
HardLineBreak ( ) : void
NewIndentLevel ( ) : void
Remove ( int start, int length ) : void
SoftIndent ( ) : bool

Inserts indentation whitespace according to the current indentation level. Does nothing if line already contains text (current line length is greater than 0).

SoftLineBreak ( ) : void
TextBuilder ( IndentBuilder indentBuilder ) : System

Private Methods

Méthode Description
AppendNewLine ( bool collapseWhitespace = true, bool forceAdd = false ) : void
RecentlyAddedLineBreakCount ( ) : int
TrimTrailingSpaces ( ) : void

Method Details

AppendPreformattedText() public méthode

public AppendPreformattedText ( string text ) : void
text string
Résultat void

AppendSpace() public méthode

public AppendSpace ( ) : void
Résultat void

AppendText() public méthode

public AppendText ( char ch ) : void
ch char
Résultat void

AppendText() public méthode

public AppendText ( string text ) : void
text string
Résultat void

AppendTextWithWrap() public méthode

public AppendTextWithWrap ( string text, int wrapLength ) : void
text string
wrapLength int
Résultat void

CloseIndentLevel() public méthode

public CloseIndentLevel ( ) : void
Résultat void

CopyFollowingLineBreaks() public méthode

public CopyFollowingLineBreaks ( ITextIterator iterator, int position ) : int
iterator ITextIterator
position int
Résultat int

CopyPrecedingLineBreaks() public méthode

public CopyPrecedingLineBreaks ( ITextIterator iterator, int position ) : int
iterator ITextIterator
position int
Résultat int

HardLineBreak() public méthode

public HardLineBreak ( ) : void
Résultat void

NewIndentLevel() public méthode

public NewIndentLevel ( ) : void
Résultat void

Remove() public méthode

public Remove ( int start, int length ) : void
start int
length int
Résultat void

SoftIndent() public méthode

Inserts indentation whitespace according to the current indentation level. Does nothing if line already contains text (current line length is greater than 0).
public SoftIndent ( ) : bool
Résultat bool

SoftLineBreak() public méthode

public SoftLineBreak ( ) : void
Résultat void

TextBuilder() public méthode

public TextBuilder ( IndentBuilder indentBuilder ) : System
indentBuilder IndentBuilder
Résultat System