/// <summary>
        /// Creates a builder initialized as a copy of an existing style builder.
        /// </summary>
        /// <param name="styleBuilder">The style builder to copy.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="styleBuilder"/> is null.</exception>
        public StyleBuilder(StyleBuilder styleBuilder)
        {
            if (styleBuilder == null)
                throw new ArgumentNullException("styleBuilder");

            font = styleBuilder.Font;
            color = styleBuilder.Color;
            tabStopRuler = styleBuilder.TabStopRuler;
            wordWrap = styleBuilder.WordWrap;
            leftMargin = styleBuilder.LeftMargin;
            rightMargin = styleBuilder.RightMargin;
            firstLineIndent = styleBuilder.FirstLineIndent;
        }
        /// <summary>
        /// Creates a builder initialized as a copy of an existing style builder.
        /// </summary>
        /// <param name="styleBuilder">The style builder to copy.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="styleBuilder"/> is null.</exception>
        public StyleBuilder(StyleBuilder styleBuilder)
        {
            if (styleBuilder == null)
            {
                throw new ArgumentNullException("styleBuilder");
            }

            font            = styleBuilder.Font;
            color           = styleBuilder.Color;
            tabStopRuler    = styleBuilder.TabStopRuler;
            wordWrap        = styleBuilder.WordWrap;
            leftMargin      = styleBuilder.LeftMargin;
            rightMargin     = styleBuilder.RightMargin;
            firstLineIndent = styleBuilder.FirstLineIndent;
        }