CodeFactory for Windows CodeFactory for Windows
CodeFactory for Windows CodeFactory for Windows
CodeFactory

Search Results for

    Interface ISourceFormatter

    Base implementation all source formatters that support CodeFactory must implement.

    Namespace: CodeFactory
    Assembly: CodeFactory.dll
    Syntax
    public interface ISourceFormatter

    Methods

    AppendCode(string)

    Appends code to the end of the current line in the formatter.

    Declaration
    void AppendCode(string code)
    Parameters
    Type Name Description
    string code

    The code to append.

    AppendCodeBlock(int, IEnumerable<string>)

    Appends a target indent level to a already formatted block of code.

    Declaration
    void AppendCodeBlock(int indentLevel, IEnumerable<string> codeBlock)
    Parameters
    Type Name Description
    int indentLevel

    The target indent level to be added to the existing code block.

    IEnumerable<string> codeBlock

    The block of code to append to.

    AppendCodeBlock(int, string)

    Appends a target indent level to a already formatted block of code.

    Declaration
    void AppendCodeBlock(int indentLevel, string codeBlock)
    Parameters
    Type Name Description
    int indentLevel

    The target indent level to be added to the existing code block.

    string codeBlock

    The block of code to append to.

    AppendCodeLine(int)

    Appends a new line of code to the formatter.

    Declaration
    void AppendCodeLine(int indentLevel)
    Parameters
    Type Name Description
    int indentLevel

    The number of indent levels to add to the source code.

    AppendCodeLine(int, string)

    Appends a new line of code to the formatter.

    Declaration
    void AppendCodeLine(int indentLevel, string code)
    Parameters
    Type Name Description
    int indentLevel

    The number of indent levels to add to the source code.

    string code

    The code to add to the formatter.

    ResetFormatter()

    Clears the formatter to be reused.

    Declaration
    void ResetFormatter()

    ReturnSource()

    Returns the formatted source code.

    Declaration
    string ReturnSource()
    Returns
    Type Description
    string

    Formatted SourceCode.

    © CodeFactory, LLC. All rights reserved.