SetPosition
The SetPosition method sets the position for the specified layer in the top-level legend.
Syntax
object.SetPosition(Index,Position)
Parameter |
Type |
Description |
Index |
Variant |
Required. The index number or layer name. |
Position |
Required. Sets the legend layer's position to a different location in the top-level legend. |
Example
This example demonstrates how to move the legend in the second position to the top
Legend.SetPosition(Index:=2, Position:=SrfLegendLayerPosTopLeftmost)
Used by: LegendLayers collection