示例#1
0
        /// <summary>
        /// Configures the <paramref name="series"/> using a configurator with options set in <paramref name="configure"/>.
        /// </summary>
        /// <param name="series">The <see cref="LineSeries"/> to configure.</param>
        /// <param name="configure">Sets options on the configurator to apply to the <paramref name="series"/>.</param>
        /// <returns>The fully configured configurator that was used to configure <paramref name="series"/>.</returns>
        public static LineSeriesConfigurator Configure(this LineSeries series,
                                                       Action <LineSeriesConfigurator> configure)
        {
            LineSeriesConfigurator configurator = new();

            configure(configurator);

            series.Configure(configurator);

            return(configurator);
        }