Exemplo n.º 1
0
        /// <summary>
        /// Defines the items.
        /// </summary>
        /// <param name="Data">The data of the notes.</param>
        /// <example>
        /// <code lang="CS">
        /// &lt;% Html.Kendo().Chart()
        ///           .Name("Chart")
        ///           .ValueAxis(a => a.Numeric()
        ///               .Note(notes => notes
        ///                    .Data(data => {
        ///                        data.Add().Value(1);
        ///                        data.Add().Value(2);
        ///                    })
        ///               )
        ///            )
        ///           .Render();
        /// %&gt;
        /// </code>
        /// </example>
        /// </code>
        /// </example>
        public ChartAxisNotesBuilder Data(Action <ChartAxisNotesFactory> configurator)
        {
            var factory = new ChartAxisNotesFactory(Notes.Data);

            configurator(factory);

            return(this);
        }
        /// <summary>
        /// Defines the items.
        /// </summary>
        /// <param name="Data">The data of the notes.</param>
        /// <example>
        /// <code lang="CS">
        /// &lt;% Html.Kendo().Chart()
        ///           .Name("Chart")
        ///           .ValueAxis(a => a.Numeric()
        ///               .Note(notes => notes
        ///                    .Data(data => {
        ///                        data.Add().Value(1);
        ///                        data.Add().Value(2);
        ///                    })
        ///               )
        ///            )
        ///           .Render();
        /// %&gt;
        /// </code>
        /// </example> 
        /// </code>
        /// </example>
        public ChartAxisNotesBuilder Data(Action<ChartAxisNotesFactory> configurator)
        {
            var factory = new ChartAxisNotesFactory(Notes.Data);

            configurator(factory);

            return this;
        }