WebApplications.Utilities.Formatting.FormatWriteContext.FormatWriteContext C# (CSharp) Method

FormatWriteContext() private method

Initializes a new instance of the FormatWriteContext class.
private FormatWriteContext ( int writerWidth, bool isColorSupported, bool isControllableWriter, bool isAutoWrapping, [ formatProvider, [ encoding, [ newLine ) : System
writerWidth int Width of the writer (if any); otherwise .
isColorSupported bool if set to the underlying writer supports color.
isControllableWriter bool if set to the underlying writer supports custom control characters.
isAutoWrapping bool if set to the underlying writer auto wraps.
formatProvider [ An object that controls formatting.
encoding [ The character encoding in which the output is written.
newLine [ The line terminator string.
return System
        internal FormatWriteContext(
            int writerWidth,
            bool isColorSupported,
            bool isControllableWriter,
            bool isAutoWrapping,
            [NotNull] IFormatProvider formatProvider,
            [NotNull] Encoding encoding,
            [NotNull] string newLine)
        {
            WriterWidth = writerWidth;
            IsColorSupported = isColorSupported;
            IsControllableWriter = isControllableWriter;
            IsAutoWrapping = isAutoWrapping;
            FormatProvider = formatProvider;
            Encoding = encoding;
            NewLine = newLine;
            Layout = Layout.Empty;
        }