EPPlus 3.0 |
ExcelRangeBase..::.LoadFromCollection<(Of <(T>)>) Method (IEnumerable<(Of <(T>)>), Boolean) |
ExcelRangeBase Class See Also Send Feedback |
Load a collection of T into the worksheet starting from the top left row of the range.
Default option will load all public instance properties of T
Namespace:
OfficeOpenXml
Assembly:
EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax
C# |
---|
public ExcelRangeBase LoadFromCollection<T>( IEnumerable<T> Collection, bool PrintHeaders ) |
Visual Basic (Declaration) |
---|
Public Function LoadFromCollection(Of T) ( _ Collection As IEnumerable(Of T), _ PrintHeaders As Boolean _ ) As ExcelRangeBase |
Visual C++ |
---|
public: generic<typename T> ExcelRangeBase^ LoadFromCollection( IEnumerable<T>^ Collection, bool PrintHeaders ) |
Parameters
- Collection
- Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The collection to load
- PrintHeaders
- Type: System..::.Boolean
Print the property names on the first row
Type Parameters
- T
- The datatype in the collection