/// <summary> An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". /// Returns the current progress task, so that methods may be chained. /// </summary> /// <param name="maxDepth"> An integer value that determines the maximum number of nested progress tasks. Progress reported at deeper levels will be ignored. All negative values are equivalent to "Auto". </param> public ProgressEnumerator <T> SetMaxDepth(ProgressDepth maxDepth) { progress.SetMaxDepth(maxDepth); return(this); }