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

Defines the fluent API for configuring the DiagramShapeDefaultsHoverFillSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramShapeDefaultsHoverFillSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramShapeDefaultsHoverFillSettingsBuilder<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public DiagramShapeDefaultsHoverFillSettingsBuilder(DiagramShapeDefaultsHoverFillSettings settings)
Parameters:settingsDiagramShapeDefaultsHoverFillSettings

Methods

Defines the default hover fill color.

C#
public DiagramShapeDefaultsHoverFillSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
Parameters:valuestring

The value that configures the color.

Returns:

DiagramShapeDefaultsHoverFillSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Hover(h =&gt; h.Fill(f =&gt; f.Color("pink")))
)
)

Defines the default hover fill opacity.

C#
public DiagramShapeDefaultsHoverFillSettingsBuilder<TShapeModel, TConnectionModel> Opacity(double value)
Parameters:valuedouble

The value that configures the opacity.

Returns:

DiagramShapeDefaultsHoverFillSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Hover(h =&gt; h.Fill(f =&gt; f.Opacity(0.5)))
)
)