Spread Windows Forms 15.0
FarPoint.Excel Assembly / FarPoint.Excel Namespace / IExcelChartReader8 Interface / ExcelSetLegendPosition Method / ExcelSetLegendPosition(Int16,Int32,PointF,SizeF,LegendPosition,LegendPositionAlign,Boolean,Boolean) Method
Index of sheetView.
Index of chart.
Location.
Size of the legend.
Legend position.
Legend position align.
It is vertical.
It is from biff.


In This Topic
    ExcelSetLegendPosition(Int16,Int32,PointF,SizeF,LegendPosition,LegendPositionAlign,Boolean,Boolean) Method
    In This Topic
    Set legend position.
    Syntax
    'Declaration
     
    
    Overloads Function ExcelSetLegendPosition( _
       ByVal sheet As Short, _
       ByVal chartIndex As Integer, _
       ByVal location As PointF, _
       ByVal size As SizeF, _
       ByVal legendPosition As LegendPosition, _
       ByVal legendPosAlign As LegendPositionAlign, _
       ByVal vertical As Boolean, _
       ByVal isBiff As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim instance As IExcelChartReader8
    Dim sheet As Short
    Dim chartIndex As Integer
    Dim location As PointF
    Dim size As SizeF
    Dim legendPosition As LegendPosition
    Dim legendPosAlign As LegendPositionAlign
    Dim vertical As Boolean
    Dim isBiff As Boolean
    Dim value As Boolean
     
    value = instance.ExcelSetLegendPosition(sheet, chartIndex, location, size, legendPosition, legendPosAlign, vertical, isBiff)

    Parameters

    sheet
    Index of sheetView.
    chartIndex
    Index of chart.
    location
    Location.
    size
    Size of the legend.
    legendPosition
    Legend position.
    legendPosAlign
    Legend position align.
    vertical
    It is vertical.
    isBiff
    It is from biff.

    Return Value

    TRUE if success, otherwise, FALSE
    See Also