Spread Windows Forms 15.0
FarPoint.Excel Assembly / FarPoint.Excel Namespace / DrawingSynchronizer Class / ToObject Method
The spread.
Index of the sheet.


In This Topic
    ToObject Method (DrawingSynchronizer)
    In This Topic
    Saves drawing objects to Excel 2007 files.
    Syntax
    'Declaration
     
    
    Public Shared Function ToObject( _
       ByVal spread As IExcelWrite, _
       ByVal sheetIndex As Short, _
       ByVal blips As List(Of Blip), _
       ByVal chartList As List(Of BlipChart), _
       ByVal saveFlags As ExcelSaveFlags _
    ) As CT_Drawing1
    'Usage
     
    
    Dim spread As IExcelWrite
    Dim sheetIndex As Short
    Dim blips As List(Of Blip)
    Dim chartList As List(Of BlipChart)
    Dim saveFlags As ExcelSaveFlags
    Dim value As CT_Drawing1
     
    value = DrawingSynchronizer.ToObject(spread, sheetIndex, blips, chartList, saveFlags)

    Parameters

    spread
    The spread.
    sheetIndex
    Index of the sheet.
    blips
    chartList
    saveFlags

    Return Value

    Returns the drawing object which can be saved to XML directly.
    See Also