Position Property

Microsoft Office Web Components Visual Basic

  • Read/write ChartAxisPositionEnum for the ChAxis object.

  • expression.Position

    expression    Required. An expression that returns one of the objects in the Applies To list.

    Example

    This example puts the legend for the specified chart to the left of the plot area.

    Sub AddLegend()
    
       Dim chConstants
    
       Set chConstants = ChartSpace1.Constants
    
       ' Enbable the legend for the first chart in Chartspace1.
       ChartSpace1.Charts(0).HasLegend = True
    
       ' Set the position of the legend.
       ChartSpace1.Charts(0).Legend.Position = chConstants.chLegendPositionLeft
    
    End Sub