Kendo UI gradient TagHelper DiagramShapeFillGradientSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("gradient", ParentTag = "fill", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("stops", new string[] { })]
[SuppressTagRendering]
public class DiagramShapeFillGradientSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDiagramShapeFillGradientSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-diagram name="diagram">
<shapes>
<shape>
<fill>
<gradient center="@(new double[] { 0.5, 0.5 })" />
</fill>
</shape>
</shapes>
</kendo-diagram>
Child Tags
Constructors
Initializes a new instance of the DiagramShapeFillGradientSettingsTagHelper class.
public DiagramShapeFillGradientSettingsTagHelper()
Properties
The center of the radial gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.
public double[] Center { get; set; }
The end point of the linear gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.
public double[] End { get; set; }
The radius of the radial gradient relative to the shape bounding box.
public double? Radius { get; set; }
The start point of the linear gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.
public double[] Start { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.