Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / ImportOptions Class
Members Example


In This Topic
    ImportOptions Class
    In This Topic
    Specifies the properties of the import options used 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
    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
    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