MoveLabel Method

The MoveLabel method moves the plot label, axis tick label, axis title, legend title, or legend entry to the specified position.

Syntax

object.MoveLabel( index, xOffset, yOffset )

 

Parameter Type Description
index Long required, index of label to be moved
xOffset double required, x position of label in page units
yOffset double required, y position of label in page units

 

Remarks

The index value for a legend title is -98.

Example 1

The following example demonstrates how to move the second legend entry and legend title

'Move second entry down one inch

Legend.MoveLabel(2, 0, -1)

 

'Move title up 0.5 inches and left 0.25 inches

Legend.MoveLabel(-98, -0.25, 0.5)

Example 2

The following example demonstrates how to move the first plot label 0.75 inches to the right.

'Move first plot label 0.75 inches right

LineScatterPlot.MoveLabel(1, 0.75, 0)

 

Used by: AutoPieChart object, AutoPlot object, AutoAxis object, AutoLegend object