Xceed Workbooks for .NET v1.4 Documentation
ImportOptions Class
Members  Example 


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace : ImportOptions Class
Specifies the import options' properties when importing data in a Worksheet through the Worksheet.ImportData method.
Syntax
'Declaration

 

Public Class ImportOptions 
'Usage

 

Dim instance As ImportOptions
public class ImportOptions 
Remarks
This is the base class for DataTableImportOptionsUserObjectImportOptions and CSVImportOptions.
Example
var workbook = Workbook.Create( "test.xlsx" );



var worksheet = workbook.Worksheets[ 0 ];



// Define a list of strings, the import options(vertical by default) and call the ImportData function.



  var stringData = new List<string>() { "First", "Second", "Third", "Fourth" };

  var stringImportOptions = new ImportOptions() { DestinationTopLeftAddress = "B5" };

  worksheet.ImportData( stringData, stringImportOptions );



workbook.Save();
Inheritance Hierarchy

System.Object
   Xceed.Workbooks.NET.ImportOptions
      Xceed.Workbooks.NET.CSVImportOptions
      Xceed.Workbooks.NET.DataTableImportOptions
      Xceed.Workbooks.NET.UserObjectImportOptions

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ImportOptions Members
Xceed.Workbooks.NET Namespace