private static string SparklineTypeToString(SparklineType type) { if (type.Equals(SparklineType.Column)) { return("column"); } else if (type.Equals(SparklineType.Stacked)) { return("stacked"); } else { return("line"); } }
/// <summary> /// Sets the type of the sparkline. /// </summary> /// <param name="theme">The Sparkline type.</param> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Sparkline() /// .Name("Sparkline") /// .Type(SparklineType.Area) /// %> /// </code> /// </example> public SparklineBuilder <T> Type(SparklineType type) { Component.Type = type; return(this); }
public SparklineBuilder Type(SparklineType value) { base.Options["type"] = value; return(this); }