ChartLegendOptionsFluent
ChartForgeX.Core
The fluent methods of ChartLegendOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- ChartLegendOptionsFluent
Methods
public static ChartLegendOptions Item(ChartLegendOptions chartLegendOptions, ChartLegendItem item) #Adds an item to ChartLegendOptions.Items: Gets the custom entries listed after the series entries.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- item ChartForgeX.Core.ChartLegendItem
- The item.
public static ChartLegendOptions Items(ChartLegendOptions chartLegendOptions, IEnumerable<ChartLegendItem> items) #Adds items to ChartLegendOptions.Items: Gets the custom entries listed after the series entries.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- items System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartLegendItem>
- The items, in order.
public static ChartLegendOptions KeyShape(ChartLegendOptions chartLegendOptions, ChartLegendKeyShape value) #Sets ChartLegendOptions.KeyShape: Gets or sets the key every series entry draws. ChartLegendKeyShape.Auto keeps the family's own key.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value ChartForgeX.Core.ChartLegendKeyShape
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { KeyShape = value }; chartLegendOptions.KeyShape(value);public static ChartLegendOptions KeySize(ChartLegendOptions chartLegendOptions, double? value) #Sets ChartLegendOptions.KeySize: Gets or sets the key size from 4 through 24 chart pixels, or null for the default ten-pixel key. A line key is 1.4 times as long.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value double?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { KeySize = value }; chartLegendOptions.KeySize(value);public static ChartLegendOptions LabelBy(ChartLegendOptions chartLegendOptions, Func<ChartLegendItemContext, string?>? value) #Sets ChartLegendOptions.ItemFormatter: Gets or sets a formatter that rewrites entry text. A null result keeps the default label.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value System.Func<ChartForgeX.Core.ChartLegendItemContext, string?>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { ItemFormatter = value }; chartLegendOptions.LabelBy(value);public static ChartLegendOptions MaxHeightFraction(ChartLegendOptions chartLegendOptions, double value) #Sets ChartLegendOptions.MaxHeightFraction: Gets or sets the fraction of chart height available to a legend, including its spacing.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { MaxHeightFraction = value }; chartLegendOptions.MaxHeightFraction(value);public static ChartLegendOptions MaxRows(ChartLegendOptions chartLegendOptions, int? value) #Sets ChartLegendOptions.MaxRows: Gets or sets an additional row limit, including the overflow summary row. Null uses the height budget alone.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { MaxRows = value }; chartLegendOptions.MaxRows(value);public static ChartLegendOptions Position(ChartLegendOptions chartLegendOptions, ChartLegendPosition value) #Sets ChartLegendOptions.Position: Gets or sets where the legend is placed relative to the plot area.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value ChartForgeX.Core.ChartLegendPosition
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { Position = value }; chartLegendOptions.Position(value);public static ChartLegendOptions ShowPoints(ChartLegendOptions chartLegendOptions, bool value = true) #Sets ChartLegendOptions.ShowPoints: Gets or sets a value indicating whether capable legends should list individual points instead of series.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { ShowPoints = value }; chartLegendOptions.ShowPoints(value);public static ChartLegendOptions Visible(ChartLegendOptions chartLegendOptions, bool value = true) #Sets ChartLegendOptions.Visible: Gets or sets whether the legend is enabled. A default legend with one entry is hidden; explicitly assigning true also displays a single entry.
Parameters
- chartLegendOptions ChartForgeX.Core.ChartLegendOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartLegendOptions { Visible = value }; chartLegendOptions.Visible(value);