public interface ICustomFormattingInfo
Public Interface ICustomFormattingInfo
public interface class ICustomFormattingInfo
type ICustomFormattingInfo = interface end
Implement this interface in addition to IFormattingInfo if you can do custom formatting, e.g. using a parser.
If it's possible for parsing to fail (keep in mind that code formatters might be asked to process incomplete fragments of code), make sure you return from the FormatCode(String, TextWriter) method (do not throw an exception), in which case the CodeFormatter will fall back to regular regex-based formatting.
If your FormatCode(String, TextWriter) method does not return , the members of IFormattingInfo will not be used.
FormatCode | Formats the specified source code. |