ClearLabelOffset Method
The ClearLabelOffset method resets the plot label, legend entry, or legend title to its default positions if it has been moved using the Graph Tools | Plot Tools | Move Labels command.
Syntax
object.ClearLabelOffset( index )
Parameter | Type | Description |
index | long | required, index of label |
Remarks
The legend title index value is -98
Example 1
This example shows how to reset the default label position for label 5.
PlotLabels.ClearLabelOffset(5)
Example 2
This example demonstrates how to reset a legend title and entry
'Reset legend title position
Legend.ClearLabelOffset(-98)
'Reset first entry position
Legend.ClearLabelOffset(1)
Used by: AutoLegend object, AutoPieChart object, AutoPlot object