ColorGradient
Class
Kendo UI ColorGradient component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class ColorGradient : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseColorGradient
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorGradient class.
C#
public ColorGradient(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Enables the contrast tool in the ColorGradient.
C#
public ColorGradientContrastToolSettings ContrastTool { get; set; }
Defines the format of the gradient input editor
C#
public ColorGradientFormat? Format { get; set; }
C#
public IEnumerable<string> Formats { get; set; }
Allows customization labels and messages in the ColorGradient.
C#
public ColorGradientMessagesSettings Messages { get; set; }
Specifies whether we should display the opacity slider to allow selection of transparency.
C#
public bool? Opacity { get; set; }
Sets the size of the component.
C#
public ComponentSize? Size { get; set; }
Methods
C#
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: