Spread WinForms 15
FarPoint.Excel Assembly / FarPoint.Excel Namespace / DrawingSynchronizer Class / ToSpread Method / ToSpread(IExcelRead,CT_OfficeStyleSheet,Int16,XFile,ObjectsDeserializer,ExcelOpenFlags) Method
The spread.
The themes.
Index of the sheet.
The drawing file.
The memory folder.


In This Topic
ToSpread(IExcelRead,CT_OfficeStyleSheet,Int16,XFile,ObjectsDeserializer,ExcelOpenFlags) Method
In This Topic
Loads drawing objects from Excel 2007 files to Spread.
Syntax
'Declaration
 
Public Overloads Shared Function ToSpread( _
   ByVal spread As IExcelRead, _
   ByVal themes As CT_OfficeStyleSheet, _
   ByVal sheetIndex As Short, _
   ByVal drawingFile As XFile, _
   ByVal objectMapper As ObjectsDeserializer, _
   ByVal openflags As ExcelOpenFlags _
) As Boolean
 
'Usage
 
Dim spread As IExcelRead
Dim themes As CT_OfficeStyleSheet
Dim sheetIndex As Short
Dim drawingFile As XFile
Dim objectMapper As ObjectsDeserializer
Dim openflags As ExcelOpenFlags
Dim value As Boolean
 
value = DrawingSynchronizer.ToSpread(spread, themes, sheetIndex, drawingFile, objectMapper, openflags)

Parameters

spread
The spread.
themes
The themes.
sheetIndex
Index of the sheet.
drawingFile
The drawing file.
objectMapper
The memory folder.
openflags

Return Value

trueif drawings are loaded successfully; otherwise, false.
See Also