コード例 #1
0
        /// <summary>
        /// Sets the style of remaining portions of the progress bar.
        /// </summary>
        /// <param name="column">The column.</param>
        /// <param name="style">The style.</param>
        /// <returns>The same instance so that multiple calls can be chained.</returns>
        public static ProgressBarColumn RemainingStyle(this ProgressBarColumn column, Style style)
        {
            if (column is null)
            {
                throw new ArgumentNullException(nameof(column));
            }

            if (style is null)
            {
                throw new ArgumentNullException(nameof(style));
            }

            column.RemainingStyle = style;
            return column;
        }