New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI ColorGradient component

Definition

Constructors

Initializes a new instance of the ColorGradient class.

C#
public ColorGradient(ViewContext viewContext)
Parameters:viewContextViewContext

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; }

Whether to render the input.

C#
public bool? Input { 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; }

Specifies the initially selected color.

C#
public string Value { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)