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

Show file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method 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

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

Method Details

AppendPreformattedText() public method

public AppendPreformattedText ( string text ) : void
text string
return void

AppendSpace() public method

public AppendSpace ( ) : void
return void

AppendText() public method

public AppendText ( char ch ) : void
ch char
return void

AppendText() public method

public AppendText ( string text ) : void
text string
return void

AppendTextWithWrap() public method

public AppendTextWithWrap ( string text, int wrapLength ) : void
text string
wrapLength int
return void

CloseIndentLevel() public method

public CloseIndentLevel ( ) : void
return void

CopyFollowingLineBreaks() public method

public CopyFollowingLineBreaks ( ITextIterator iterator, int position ) : int
iterator ITextIterator
position int
return int

CopyPrecedingLineBreaks() public method

public CopyPrecedingLineBreaks ( ITextIterator iterator, int position ) : int
iterator ITextIterator
position int
return int

HardLineBreak() public method

public HardLineBreak ( ) : void
return void

NewIndentLevel() public method

public NewIndentLevel ( ) : void
return void

Remove() public method

public Remove ( int start, int length ) : void
start int
length int
return void

SoftIndent() public method

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
return bool

SoftLineBreak() public method

public SoftLineBreak ( ) : void
return void

TextBuilder() public method

public TextBuilder ( IndentBuilder indentBuilder ) : System
indentBuilder IndentBuilder
return System