/// <summary>
        /// Initializes a new instance of the <see cref="EnumerateOperation"/> class.
        /// This is a clone constructor, copying the values from one to another.
        /// </summary>
        /// <param name="operationToCopy">Operation to copy.</param>
        public EnumerateOperation(EnumerateOperation operationToCopy)
        {
            this.Initialize();

            this.formatPreset = operationToCopy.formatPreset;
            this.countFormat  = operationToCopy.countFormat;

            this.StartingCount = operationToCopy.StartingCount;
            this.Increment     = operationToCopy.Increment;
            this.Prepend       = operationToCopy.Prepend;
        }
        private void Initialize()
        {
            this.Increment = 1;

            // Give it an initially valid count format
            this.countFormat = "0";

            // Start in Single digit just because it's more readable and shows the user
            // what to do.
            this.formatPreset = CountFormatPreset.SingleDigit;
        }
 /// <summary>
 /// Sets a format preset to use when counting.
 /// </summary>
 /// <param name="preset">Preset format to use when counting.</param>
 public void SetCountFormatPreset(CountFormatPreset preset)
 {
     this.formatPreset = preset;
 }
 /// <summary>
 /// Sets a custom string format to use when counting.
 /// </summary>
 /// <param name="format">String format to use when counting</param>
 public void SetCountFormat(string format)
 {
     this.countFormat  = format;
     this.formatPreset = CountFormatPreset.Custom;
 }