ColorGradient
Class
Kendo UI ColorGradient component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class ColorGradient : WidgetBase, IHtmlAttributesContainer, IFormEditor
Inheritance: objectWidgetBaseColorGradient
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorGradient class.
Properties
Enables the contrast tool in the ColorGradient.
C#
public ColorGradientContrastToolSettings ContrastTool { get; }
Defines the format of the gradient input editor.
C#
public ColorGradientFormat? Format { get; set; }
Writes the HTML.
C#
public IEnumerable<string> Formats { get; set; }
Allows customization labels and messages in the ColorGradient.
C#
public ColorGradientMessagesSettings Messages { get; }
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
Serializes the component settings to a dictionary.
C#
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
Implements:
SerializeSettings method.
C#
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
C#
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: