Defines the fluent API for configuring SankeyLegendSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SankeyLegendSettingsBuilder
Inheritance: objectSankeyLegendSettingsBuilder
Inherited Members
Constructors
SankeyLegendSettingsBuilder method.
public SankeyLegendSettingsBuilder(SankeyLegendSettings container)
Properties
Gets the settings being configured.
protected SankeyLegendSettings Container { get; }
Methods
The alignment of the legend label.
public SankeyLegendSettingsBuilder Align(LabelAlign value)
The value for Align
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The background color of the legend.
public SankeyLegendSettingsBuilder Background(string value)
The value for Background
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The border of the legend.
public SankeyLegendSettingsBuilder Border(Action<SankeyLegendBorderSettingsBuilder> configurator)
The SankeyLegendBorderSettingsBuilder for the border setting.
Returns:Returns the current instance of SankeyLegendSettingsBuilder .
The height of the legend.
public SankeyLegendSettingsBuilder Height(double value)
The value for Height
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The configuration of the legend items.
public SankeyLegendSettingsBuilder Item(Action<SankeyLegendItemSettingsBuilder> configurator)
The SankeyLegendItemSettingsBuilder for the item setting.
Returns:Returns the current instance of SankeyLegendSettingsBuilder .
The Sankey legend label configuration.
public SankeyLegendSettingsBuilder Labels(Action<SankeyLegendLabelsSettingsBuilder> configurator)
The SankeyLegendLabelsSettingsBuilder for the labels setting.
Returns:Returns the current instance of SankeyLegendSettingsBuilder .
The margin of the Sankey legend. A numeric value will set all paddings.
public SankeyLegendSettingsBuilder Margin(Action<SankeyLegendMarginSettingsBuilder> configurator)
The SankeyLegendMarginSettingsBuilder for the margin setting.
Returns: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.
public SankeyLegendSettingsBuilder OffsetX(double value)
The value for OffsetX
Returns: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.
public SankeyLegendSettingsBuilder OffsetY(double value)
The value for OffsetY
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The position of the label.
public SankeyLegendSettingsBuilder Orientation(Orientation value)
The value for Orientation
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The padding of the Sankey legend. A numeric value will set all paddings.
public SankeyLegendSettingsBuilder Padding(Action<SankeyLegendPaddingSettingsBuilder> configurator)
The SankeyLegendPaddingSettingsBuilder for the padding setting.
Returns:Returns the current instance of SankeyLegendSettingsBuilder .
The position of the label.
public SankeyLegendSettingsBuilder Position(LegendPosition value)
The value for Position
Returns:Returns the current SankeyLegendSettingsBuilder instance.
If set to true the legend items will be reversed.
public SankeyLegendSettingsBuilder Reverse()
Returns the current SankeyLegendSettingsBuilder instance.
If set to true the legend items will be reversed.
public SankeyLegendSettingsBuilder Reverse(bool value)
The value for Reverse
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The spacing between the labels in pixels when the legend.orientation is "horizontal".
public SankeyLegendSettingsBuilder Spacing(double value)
The value for Spacing
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The legend title configuration options.
public SankeyLegendSettingsBuilder Title(Action<SankeyLegendTitleSettingsBuilder> configurator)
The SankeyLegendTitleSettingsBuilder for the title setting.
Returns:Returns the current instance of SankeyLegendSettingsBuilder .
If set to false the Sankey will not display the legend.
public SankeyLegendSettingsBuilder Visible(bool value)
The value for Visible
Returns:Returns the current SankeyLegendSettingsBuilder instance.
The legend width when the legend.orientation is set to "horizontal".
public SankeyLegendSettingsBuilder Width(double value)
The value for Width
Returns:Returns the current SankeyLegendSettingsBuilder instance.