C# Class XamlStyler.Core.Services.IndentService

Mostra file Open project: NicoVermeir/XamlStyler Class Usage Examples

Public Methods

Method Description
GetIndentString ( int depth ) : string
GetIndentString ( int depth, int additionalSpaces ) : string
IndentService ( bool indentWithTabs, int indentSize )
Normalize ( string line ) : string

Replace blocks of "indentsize" consecutive spaces with a tab, but only at the beginning of the line

Method Details

GetIndentString() public method

public GetIndentString ( int depth ) : string
depth int
return string

GetIndentString() public method

public GetIndentString ( int depth, int additionalSpaces ) : string
depth int
additionalSpaces int
return string

IndentService() public method

public IndentService ( bool indentWithTabs, int indentSize )
indentWithTabs bool
indentSize int

Normalize() public method

Replace blocks of "indentsize" consecutive spaces with a tab, but only at the beginning of the line
public Normalize ( string line ) : string
line string
return string