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

Defines the fluent API for configuring SankeyLegendSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SankeyLegendSettingsBuilder

Inheritance: objectSankeyLegendSettingsBuilder

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

Constructors

SankeyLegendSettingsBuilder method.

C#
public SankeyLegendSettingsBuilder(SankeyLegendSettings container)
Parameters:containerSankeyLegendSettings

Properties

Gets the settings being configured.

C#
protected SankeyLegendSettings Container { get; }

Methods

The alignment of the legend label.

C#
public SankeyLegendSettingsBuilder Align(LabelAlign value)
Parameters:valueLabelAlign

The value for Align

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The background color of the legend.

C#
public SankeyLegendSettingsBuilder Background(string value)
Parameters:valuestring

The value for Background

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The border of the legend.

C#
public SankeyLegendSettingsBuilder Border(Action<SankeyLegendBorderSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendBorderSettingsBuilder>

The SankeyLegendBorderSettingsBuilder for the border setting.

Returns:

SankeyLegendSettingsBuilder

Returns the current instance of SankeyLegendSettingsBuilder .

The height of the legend.

C#
public SankeyLegendSettingsBuilder Height(double value)
Parameters:valuedouble

The value for Height

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The configuration of the legend items.

C#
public SankeyLegendSettingsBuilder Item(Action<SankeyLegendItemSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendItemSettingsBuilder>

The SankeyLegendItemSettingsBuilder for the item setting.

Returns:

SankeyLegendSettingsBuilder

Returns the current instance of SankeyLegendSettingsBuilder .

The Sankey legend label configuration.

C#
public SankeyLegendSettingsBuilder Labels(Action<SankeyLegendLabelsSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendLabelsSettingsBuilder>

The SankeyLegendLabelsSettingsBuilder for the labels setting.

Returns:

SankeyLegendSettingsBuilder

Returns the current instance of SankeyLegendSettingsBuilder .

The margin of the Sankey legend. A numeric value will set all paddings.

C#
public SankeyLegendSettingsBuilder Margin(Action<SankeyLegendMarginSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendMarginSettingsBuilder>

The SankeyLegendMarginSettingsBuilder for the margin setting.

Returns:

SankeyLegendSettingsBuilder

Returns the current instance of SankeyLegendSettingsBuilder .

The X offset of the Sankey legend. The offset is relative to the default position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of its initial position. A negative value will move the legend to the left of its current position.

C#
public SankeyLegendSettingsBuilder OffsetX(double value)
Parameters:valuedouble

The value for OffsetX

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The Y offset of the Sankey legend. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels down from its initial position. A negative value will move the legend upwards from its current position.

C#
public SankeyLegendSettingsBuilder OffsetY(double value)
Parameters:valuedouble

The value for OffsetY

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The position of the label.

C#
public SankeyLegendSettingsBuilder Orientation(Orientation value)
Parameters:valueOrientation

The value for Orientation

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The padding of the Sankey legend. A numeric value will set all paddings.

C#
public SankeyLegendSettingsBuilder Padding(Action<SankeyLegendPaddingSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendPaddingSettingsBuilder>

The SankeyLegendPaddingSettingsBuilder for the padding setting.

Returns:

SankeyLegendSettingsBuilder

Returns the current instance of SankeyLegendSettingsBuilder .

The position of the label.

C#
public SankeyLegendSettingsBuilder Position(LegendPosition value)
Parameters:valueLegendPosition

The value for Position

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

If set to true the legend items will be reversed.

C#
public SankeyLegendSettingsBuilder Reverse()
Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

If set to true the legend items will be reversed.

C#
public SankeyLegendSettingsBuilder Reverse(bool value)
Parameters:valuebool

The value for Reverse

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The spacing between the labels in pixels when the legend.orientation is "horizontal".

C#
public SankeyLegendSettingsBuilder Spacing(double value)
Parameters:valuedouble

The value for Spacing

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The legend title configuration options.

C#
public SankeyLegendSettingsBuilder Title(Action<SankeyLegendTitleSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendTitleSettingsBuilder>

The SankeyLegendTitleSettingsBuilder for the title setting.

Returns:

SankeyLegendSettingsBuilder

Returns the current instance of SankeyLegendSettingsBuilder .

If set to false the Sankey will not display the legend.

C#
public SankeyLegendSettingsBuilder Visible(bool value)
Parameters:valuebool

The value for Visible

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.

The legend width when the legend.orientation is set to "horizontal".

C#
public SankeyLegendSettingsBuilder Width(double value)
Parameters:valuedouble

The value for Width

Returns:

SankeyLegendSettingsBuilder

Returns the current SankeyLegendSettingsBuilder instance.