Class FormattingInstruction
- Namespace
- NMF.AnyText.PrettyPrinting
- Assembly
- NMF.AnyText.Core.dll
Denotes a formatting instruction
public abstract class FormattingInstruction
- Inheritance
-
FormattingInstruction
- Inherited Members
Fields
Indent
Denotes a shared instance for an indenting instruction
public static readonly FormattingInstruction Indent
Field Value
Newline
Denotes a shared instance for a newline instruction
public static readonly FormattingInstruction Newline
Field Value
SupressSpace
Denotes a shared instance for a space supression
public static readonly FormattingInstruction SupressSpace
Field Value
Unindent
Denotes a shared instance for an unindent instruction
public static readonly FormattingInstruction Unindent
Field Value
Methods
Apply(PrettyPrintWriter)
Applies the formatting instruction to the provided pretty print writer
public abstract void Apply(PrettyPrintWriter writer)
Parameters
writerPrettyPrintWriterthe writer to apply the instruction on
Setup(PrettyPrintWriter)
Performs setup instructions to the provided pretty print writer
public abstract void Setup(PrettyPrintWriter writer)
Parameters
writerPrettyPrintWriterthe writer to apply the instruction on