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:
Property | Description |
---|---|
LegendOrientation | Gets or sets the legend orientation. |
ShowDateAndTime | Gets or sets whether the date and time is shown. |
ShowMinMax | Gets or sets whether the minimum and maximum values are shown. |
ShowDeformingScaling | Gets or sets whether the deformation scaling is shown. |
Reset | Resets 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