PowerArgs.Cli.CliProgressBar.CliProgressBar C# (CSharp) Method

CliProgressBar() public method

Creates a new progress bar given a width
public CliProgressBar ( ConsoleString initialMessage = null, int width = null ) : System
initialMessage ConsoleString an initial message to display in the progress bar
width int the width to use or null to use the default width which is one third of the console buffer width
return System
        public CliProgressBar(ConsoleString initialMessage = null, int? width = null)
        {
            Console = ConsoleProvider.Current;
            Message = initialMessage;
            Width = width.HasValue ? width.Value : Console.BufferWidth / 3;
            BorderPen = new ConsoleCharacter(' ', null, ConsoleColor.DarkGray);
            FillColor = ConsoleColor.Green;
            MessageFillColor = ConsoleColor.Black;
            indeterminateHighlightIndex = -1;
        }

Same methods

CliProgressBar::CliProgressBar ( string initialMessage, int width = null ) : System