ILNumerics Ultimate VS

LegendDefaultItemStyle Property

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Holds an LegendItem template used to style new legend items or null.

[ILNumerics Visualization Engine]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Drawing (in ILNumerics.Drawing.dll) Version: ILNumerics Ultimate VS 4
Syntax

public LegendItem DefaultItemStyle { get; set; }

Property Value

Type: LegendItem
Remarks

If DefaultItemStyle returns an LegendItem (and not null) the style of that item is used and copied to new legend items. Otherwise, new legend items will receive the default styling: light background and a label style corresponding to DefaultLabelStyle.

If DefaultItemStyle is not null the Label defined within this default item object will override the DefaultLabelStyle (if any). However, the current setting of DefaultLabelStyle is not altered.

The default item style can be configured by modifying the existing DefaultItemStyle object returned or by assigning a new LegendItem object to the DefaultItemStyle property. In latter case a clone of the provided legend item object will be made during the assignment. Note, that the get accessor returnes the stored item template without cloning.

Alternatively, one may provide a preconfigured LegendItem to one of the Legend constructors accepting a DefaultItemStyle parameter. One example is Legend(Group, IEnumerableString, Object, LegendItem, Label)

[ILNumerics Visualization Engine]

See Also

Reference