Global Legend Settings

Legend settings that are common to all results are referred to as global legend settings. To access these settings, you use the command GlobalLegendSettings:

Graphics.GlobalLegendSettings

These properties are available for the GlobalLegendSettings object:

PropertyDescription
LegendOrientationGets or sets the legend orientation.
ShowDateAndTimeGets or sets whether the date and time is shown.
ShowMinMaxGets or sets whether the minimum and maximum values are shown.
ShowDeformingScalingGets or sets whether the deformation scaling is shown.
ResetResets the global legend settings to the defaults.

This code changes the legend orientation to horizontal and hides the deformation scaling:

gls = Graphics.GlobalLegendSettings
gls.LegendOrientation = LegendOrientationType.Horizontal
gls.ShowDateAndTime = True
gls.ShowMinMax = True
gls.ShowDeformingScaling = False