property Legend.Locked as Boolean
Indicates whether the legend is locked(protected) or unlocked

TypeDescription
Boolean A boolean expression that specifies whether the legend is locked(protected) or unlocked. For instance:
  • false, unlocks the legend (can show or hide the serie)
  • true, locks the legend (can't show or hide the serie)
By default, the Locked property is False (the legend is not locked, so the user can show/hide the series). The Locked property ondicates whether the legend is locked(protected) or unlocked. The Visible property shows or hides the legend. The Pad property defines the legend's padding (space between legend's symbol and label). The FormatText property specifies the flags the labels use to display on the legend. The LabelFixedWidth property Indicates the fixed-width to display the labels. The LabelFixedHeight property Indicates the height-width to display the labels. The SymbolAlign property specifies the alignment of the symbol of the serie relative to the label of the serie. The SymbolWidth property indicates the fixed-width to display the symbol. The SymbolHeight property indicates the height-width to display the symbol. The Grid property specifies the number of columns or rows that the legend divides its content into.